Exclude folder: direct path to folder

What is the problem you are having with rclone?

/Network/Backups/PVE_A/offsite_backup/**

This rule is not working.
How can I specify a direct path to a directory that I don't want to be included in the sync?

**/offsite_backup/**

This rule is working. But it would also exclude all my other "offsite_backup" folders in the "Network" folder.

What is your rclone version (output from rclone version)

rclone v1.53.1-DEV

  • os/arch: freebsd/amd64
  • go version: go1.15.2

Which OS you are using and how many bits (eg Windows 7, 64 bit)

TrueNAS x64

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

OneDrive (Personal)

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

-----

The rclone config contents with secrets removed.

A log from the command with the -vv flag

-----

Think that should be correct.. What happens?

It still gets downloaded and I can't think of why.

EDIT: :man_facepalming: :man_facepalming: :man_facepalming:
Just found out why.

transfer mode: SYNC
local: /mnt/NAS_pool/nas/Data/OneDrive/Network
remote: /Network

exclude (wrong): /Network/Backups/PVE_A/offsite_backup/**
exclude (correct): /Backups/PVE_A/offsite_backup/**

It seems it is not allowed to also put the root_sync_dir in the exclude path.
The log shows that the root_sync_dir is ignored:

2021/03/18 13:03:28 NOTICE: Backups/PVE_A/offsite_backup/file_a.txt: Skipped copy as --dry-run is set
2021/03/18 13:03:28 NOTICE: Backups/PVE_A/offsite_backup/file_b.txt: Skipped copy as --dry-run is set

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