Skip to content
Snippets Groups Projects
Verified Commit ac973ead authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[DBBackupRotation] Fix bad path looking

parent 8ab33eb2
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ try: ...@@ -31,7 +31,7 @@ try:
#For each service in the config file, creates a new cron job #For each service in the config file, creates a new cron job
for service in services_list: for service in services_list:
if os.path.isdir(services_list[service]["Folder"]): if os.path.isdir(os.path.join(BACKUP_FOLDER, services_list[service]["Folder"])):
backup_rota = services_list[service]["Backup-Rota"] 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 -H " +str(backup_rota["Hour"]) + " -d " + \
str(backup_rota["Day"]) + " -w " + str(backup_rota["Week"]) + " -m " + str(backup_rota["Month"]) + " " + \ str(backup_rota["Day"]) + " -w " + str(backup_rota["Week"]) + " -m " + str(backup_rota["Month"]) + " " + \
......
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