Rclone sync won't delete files from changed file paths

What is the problem you are having with rclone?

I run rclone script with cron job and i use text file with list of files for backup. I changed the path for some files in the text file but old files with the old path are not deleted on the remote. For example, i changed a path from /media/data1 to /mnt/data1 but the directory /media/data1 still exist on the remote.

Run the command 'rclone version' and share the full output of the command.

rclone v1.71.0

  • os/version: arch 25.0.10 (64 bit)
  • os/kernel: 6.12.48-1-MANJARO (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.24.6
  • go/linking: dynamic
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

#!/bin/bash
/usr/bin/rclone sync / google3crypt: \
  --filter-from=/home/user/Scripts/Rclone/filters/filter1.txt \
  --config=/home/user/.config/rclone/rclone.conf \
  --log-file=/mnt/data1/Logs/google3crypt.txt -vv

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[google3crypt]
type = crypt
remote = google3:pcbackup
filename_encryption = standard
directory_name_encryption = true
password = XXX

A log from the command that you were trying to run with the -vv flag

Paste  log here

hi, why would you expect rclone to delete a directory that is not part of your command?

I thought the sync command will delete files that are not in the text file.

maybe i am not understanding your issue.

where did you change the path? on the command, in the text file or what?

I changed the path in the text file.

afiak, if /media/data1 is not in the filter file, rclone is not going to touch it.

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