I'm using Google Drive (crypted) as my backup destination and I'm trying to set up some kind of simple retention policy.
My goal is to delete removed files after a certain time from the --backup-dir location (30 days for example).
However when I run the delete command with --dry-run it wants to delete the test.txt file before the retention time is up, if for example I delete it today and run the delete command the file would be removed.
Is there a way to make the --backup-dir also modify the file time in the archive folder to prevent this from happening?
Run the command 'rclone version' and share the full output of the command.
rclone v1.58.0
os/version: freebsd 12.2-release-p6 (64 bit)
os/kernel: 12.2-release-p6 (amd64)
os/type: freebsd
os/arch: amd64
go/version: go1.17.8
go/linking: static
go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Google Drive with crypt.
The command you were trying to run (eg rclone copy /tmp remote:tmp)
for debugging, please post a debug output.
and if possible to keep the output short, try to delete a single file. rclone delete gdrive:archive/path/to/test.txt --min-age 30d --dry-run -vv
and with --backup-dir, i run a command similar to this, forever forward incremental backups.
will create a new subfolder with date/timestamp.