I'm using --filter-from rules to selectively backup directories on my workstation. I have files to include and files to exclude. According to the docs, I should be using --filter-from. However, I need to exclude a subdirectory of parent directory I want to include. I set the exclude first: - Pictures/Photos Library.photoslibrary/" and then the include of the parent: + Pictures/**. But the photoslibary directory keeps getting synced.
Run the command 'rclone version' and share the full output of the command.
❯ rclone version
rclone v1.59.2
- os/version: darwin 12.4 (64 bit)
- os/kernel: 21.5.0 (x86_64)
- os/type: darwin
- os/arch: amd64
- go/version: go1.18.6
- go/linking: dynamic
- go/tags: cmount
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)
...truncated
2022/09/26 09:24:21 NOTICE: Pictures/Photos Library.photoslibrary/resources/derivatives/0/0BA2FB72-20C7-4C1B-B3E5-05F3E962BD23_1_105_c.jpeg: Skipped copy as --dry-run is set (size 160.349Ki)
2022/09/26 09:24:21 NOTICE: Pictures/Photos Library.photoslibrary/resources/derivatives/0/0BBA6939-9A59-49F7-88D3-04867FCA9B7A_1_105_c.jpeg: Skipped copy as --dry-run is set (size 188.662Ki)
2022/09/26 09:24:21 NOTICE: Pictures/Photos Library.photoslibrary/resources/derivatives/0/0B5C0968-CE9C-435E-A14A-5A0A34E4C1B6_1_105_c.jpeg: Skipped copy as --dry-run is set (size 189.823Ki)
...truncated
Output is too long for a terminal, but when I rclone ls /path/to/home/ with my filter (below), it lists out every file in the photoslibrary folder (which is thousands of files).
Hehe, found something else (I should have seen initially). No quotes in the filter file, unless you expect them to be part of the path or file name. So try this: