Backup scripts won't run


I want to set up one job that has a pre-backup script:

$ jq .computers[0].repositories[1] ~/.duplicacy-web/duplicacy.json 
  "index": 1,
  "id": "postgres",
  "path": "/zen-homes/backups/postgres",
  "storage": "b2-databases",
  "global_options": "-d",
  "options": "-threads 4",
  "report_url_enabled": false,
  "report_url": "",
  "report_url_on_failure": false,
  "nobackup_file": "",
  "exclude_by_attribute": false,
  "filters": false,
  "job_log": "backup-20210122-115013.log",
  "job_code": "success",
  "job_note": "Completed",
  "job_time": "2021-01-22T11:50:18.976807269Z"

$ ls ~/.duplicacy-web/repositories/localhost/1/.duplicacy/scripts -la
total 12
drwxrwxr-x    2 root     root          4096 Jan 22 03:21 .
drwxrwxr-x    3 root     root          4096 Jan 22 10:55 ..
-rwxrwxr-x    1 root     root            99 Jan 22 11:27 pre-backup

$ cat ~/.duplicacy-web/repositories/localhost/1/.duplicacy/scripts/pre-backup 
exit 1

With the above script the backup should have been cancelled, but it is not. There are no mentions on the logs regarding the execution of the script.

I’ve checked several times, and I can’t find the problem. Can anyone help?


The solution is here:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.