Delete not possible, weired sync

Hi,

our Managed Server has installed

rclone v1.53.3-DEV

  • os/arch: linux/amd64
  • go version: go1.15.9

As S3-compatible Provider we're using DigitalOcean.

Backup works very well, but there are big issues:

  1. Every time we're using
rclone sync /var/www/folder/private/backup/mysql spaces:backup-name/db --multi-thread-streams 8 --ignore-errors --ignore-checksum --config "/var/www/folder/home/ssh_user/rclone_config.txt" --checkers 80 --transfers 80

rclone uploads the complete folder and not only the newest/changed ones

  1. Delete oldest files not possible
rclone delete spaces:backup-name/db --max-age 5 --config "/var/www/folder/home/ssh_user/rclone_config.txt"

Does nothing. Here's a screenshot of the DigitalOcean WebGUI, you see, there are some really old files we don't need anymore

Here's a screenshot of the folder where you can see, that in the folder this files are already deleted:

rw------- 1 x client1  361857956 Jun 18 04:05 bak.x.2024-06-18_04.05.01_.tar.gz
-rw------- 1 x client1  361918184 Jun 19 04:05 bak.x.2024-06-19_04.05.01_.tar.gz
-rw------- 1 x client1  361973919 Jun 20 04:05 bak.x.2024-06-20_04.05.01_.tar.gz
-rw------- 1 x client1  362024094 Jun 21 04:05 bak.x.2024-06-21_04.05.01_.tar.gz
-rw------- 1 x client1 1222648196 Jun 20 20:21 bak.xx.2024-06-20_20.20.01_.tar.gz
-rw------- 1 x client1 1222730219 Jun 20 21:21 bak.xx.2024-06-20_21.20.01_.tar.gz
-rw------- 1 x client1 1222769362 Jun 20 22:21 bak.xx.2024-06-20_22.20.01_.tar.gz
-rw------- 1 x client1 1219873219 Jun 20 23:21 bak.xx.2024-06-20_23.20.01_.tar.gz
-rw------- 1 x client1 1219862602 Jun 21 00:22 bak.xx.2024-06-21_00.20.01_.tar.gz
-rw------- 1 x client1 1219898225 Jun 21 01:22 bak.xx.2024-06-21_01.20.01_.tar.gz
-rw------- 1 x client1 1220469895 Jun 21 02:22 bak.xx.2024-06-21_02.20.01_.tar.gz
-rw------- 1 x client1 1220769154 Jun 21 03:22 bak.xx.2024-06-21_03.20.01_.tar.gz

Config:

x@x:~$ cat /var/www/x.com/home/x/rclone_config.txt
[spaces]
type = s3
provider = DigitalOcean
env_auth = false
access_key_id = xxxxx
secret_access_key = xxxxx
region = fra1
endpoint = https://x.fra1.digitaloceanspaces.com
acl = private

Perhaps anyone knows whats going on.

Thank you

This is truly ancient version of rclone (from 2020). No point to investigate problems with it (unless for IT archaeology) as in subsequent 30+ releases many things changed and were fixed. Install the latest one and try again.

Unfortunately, this is the latest release in Debian 11/Bullseye and we've a Managed Server.

Rclone is stand-alone binary you can save anywhere. No need to install any dependencies etc.

Thank you. Started with the latest version. Same problem unfortunately

1 Like

It does not delete anything because you use --dry-run

It tells you what was skipped and not deleted.

yeah, of course. but why is it empty with --max-age 1 and 10?

Because you do not have any files 1 second (default duration unit) old or less.

Please check docs:

What you probably need is:

—min-age 1d

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