Skip to content
Snippets Groups Projects
Commit cc06de19 authored by Andres Maldonado's avatar Andres Maldonado
Browse files

[pica-db-backup-rotation] Try to force logging

parent 90fb86a7
No related branches found
No related tags found
No related merge requests found
Pipeline #59262 passed
......@@ -33,7 +33,7 @@ try:
for service in services_list:
if os.path.isdir(os.path.join(BACKUP_FOLDER, services_list[service]["Folder"])):
backup_rota = services_list[service]["Backup-Rota"]
rotation_cmd = "/usr/local/bin/rotate-backups -H " +str(backup_rota["Hour"]) + " -d " + \
rotation_cmd = "/usr/local/bin/rotate-backups --syslog=true -H " +str(backup_rota["Hour"]) + " -d " + \
str(backup_rota["Day"]) + " -w " + str(backup_rota["Week"]) + " -m " + str(backup_rota["Month"]) + " " + \
BACKUP_FOLDER + "/" + services_list[service]["Folder"]
job = cron.new(command=rotation_cmd, user = 'root')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment