I’ve looked at the forums and the information I’ve seen to only keep specific backups with “-keep” isn’t working out for me in the Web GUI. It keeps erroring out when I try to kick off the backup job and the logs also say it errored.
The relevant logs are:
2025/04/18 20:58:15 192.168.220.5:49260 POST /start_stop_backup
2025/04/18 20:58:15 Created log file /logs/backup-20250418-205815.log
2025/04/18 20:58:15 Running /home/duplicacy/.duplicacy-web/bin/duplicacy_linux_x64_3.2.3 [-log -d backup -storage 2025-unraid-backups -threads 50 -keep 0:28 -stats]
2025/04/18 20:58:15 Set current working directory to /cache/localhost/11
2025/04/18 20:58:15 The CLI executable returned an error: exit status 2, exit code: 2
The logic I would like to use is:
-keep 180:730 -keep 90:365 -keep 30:120 -keep 7:30 -keep 1:1
Which from I’ve read is supposed to:
Keep 1 snapshot every 180 day(s) if older than 730 day(s)
Keep 1 snapshot every 90 day(s) if older than 365 day(s)
Keep 1 snapshot every 30 day(s) if older than 120 day(s)
Keep 1 snapshot every 7 day(s) if older than 30 day(s)
Keep 1 snapshot every 1 day(s) if older than 1 day(s)
I’ve shortened the config to just this as a test and it also fails with the above error message:
-keep 0:28
The options screen looks like this. The “-threads 50 -stats” I have in all my other backup jobs, so I don’t think that’s causing the failure.