What is the problem you are having with rclone?
Hi - I can't quite seem to get my filter file right. While I figured out this portion, I'm now trying to exclude certain folders in /appdata/ with a different rclone copy command (examples below). The filter file works when I don't explicitly copy /appdata/, but breaks when I include it. I tried to account for this by including **/
BEFORE each folder in filter file, but that didn't solve it.
Run the command 'rclone version' and share the full output of the command.
rclone v1.69.0
- os/version: slackware 15.0+ (64 bit)
- os/kernel: 6.6.68-Unraid (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.23.4
- go/linking: static
- 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
)
Here is my filter file:
filter file
# Since default is to include all folders in /mnt/user/, exclude main data and unraid folders
- /data/**
- /domains/**
- /isos/**
- /system/**
# Include only backup folders, exclude remaining temporary and replaceable files
- **/plex/Library/Application Support/Plex Media Server/Cache/**
- **/plex/Library/Application Support/Plex Media Server/Media/**
- **/plex/Library/Application Support/Plex Media Server/Metadata/**
- **/plex/Library/Application Support/Plex Media Server/Logs/**
- **/plex/Library/Application Support/Plex Media Server/Crash Reports/**
- **/other/**
- **/jackett/**
- **/QDirStat/**
+ **/radarr/Backups/**
- **/radarr/**
+ **/sonarr/Backups/**
- **/sonarr/**
+ **/lidarr/Backups/**
- **/lidarr/**
# Exclude specific hidden and temporary files
- *fuse_hidden*
- *_HIDDEN
- .recycle**
- .Recycle.Bin/**
- *.backup~*
- *.partial~*
This command works and excludes what I need:
rclone copy "/mnt/user" "gd:backup" "--backup-dir" "gd:backup-deleted"
--dry-run \
--filter-from /mnt/user/appdata/other/rclone/remotes/gd/rclone_filters.txt \
2025/02/15 16:25:57 DEBUG : data: Excluded
2025/02/15 16:25:57 DEBUG : isos: Excluded
2025/02/15 16:25:57 DEBUG : system: Excluded
2025/02/15 16:25:57 DEBUG : domains: Excluded
2025/02/15 16:25:57 DEBUG : appdata: Directory modification time the same (differ by -505.105ยตs, within tolerance 1ms)
2025/02/15 16:25:57 DEBUG : Added delayed dir = "appdata", newDst=appdata
2025/02/15 16:25:57 DEBUG : appdata/other: Excluded
2025/02/15 16:25:57 DEBUG : appdata/jackett: Excluded
2025/02/15 16:25:57 DEBUG : appdata/QDirStat: Excluded
2025/02/15 16:25:58 DEBUG : appdata/jackett: Excluded
2025/02/15 16:25:58 DEBUG : appdata/QDirStat: Excluded
2025/02/15 16:26:06 DEBUG : appdata/plex/Library/Application Support/Plex Media Server/Crash Reports: Excluded
2025/02/15 16:26:06 DEBUG : appdata/plex/Library/Application Support/Plex Media Server/Logs: Excluded
2025/02/15 16:26:06 DEBUG : appdata/plex/Library/Application Support/Plex Media Server/Cache: Excluded
2025/02/15 16:26:06 DEBUG : appdata/plex/Library/Application Support/Plex Media Server/Media: Excluded
2025/02/15 16:26:06 DEBUG : appdata/plex/Library/Application Support/Plex Media Server/Metadata: Excluded
However, this command then breaks the exclusions with the same filter file. Oddly the only folder that is excluded for some reasons is QDirStat/xdg/config/QDirStat?
rclone copy "/mnt/user/appdata" "gd:backup" "--backup-dir" "gd:backup-deleted"
--dry-run \
--filter-from /mnt/user/appdata/other/rclone/remotes/gd/rclone_filters.txt \
2025/02/15 16:41:01 DEBUG : QDirStat/xdg/config/QDirStat: Excluded
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[gd]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
root_folder_id = XXX
server_side_across_configs = true
team_drive =