What is the problem you are having with rclone? Cannot wrap my head around how to exclude specific subdirectories
Run the command 'rclone version' and share the full output of the command.
rclone v1.60.1-DEV
- os/version: ubuntu 24.04 (64 bit)
- os/kernel: 6.8.0-51-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.2
- go/linking: dynamic
- go/tags: none
Which cloud storage system are you using?
idrive
Issue:
I'd like to ideally keep the folder structure starting inside /home/user_name
There are subdirectories inside docker that I do not want or need backed up.
So far I've modified a script I found online and tried two things. First I've tried this to see if I could exclude everything except /documents, but the result was a backup the entirety of /user_name/
NOW=$(date +"%Y-%m-%dT%H%M%S%z")
SOURCE=/home/user_name
DEST=idrive:user_name
rclone sync $SOURCE ${DEST} \
--fast-list \
--exclude="/downloads/**
--exclude="/docker/**
--progress -v \
--backup-dir ${DEST}/backup/${NOW}
I then tried it using
rclone.sh
NOW=$(date +"%Y-%m-%dT%H%M%S%z")
SOURCE=/home/user_name
DEST=idrive:user_name
rclone sync $SOURCE ${DEST} \
--fast-list \
--filter-from filter-list.txt
--progress -v \
--backup-dir ${DEST}/backup/${NOW}'
filter-list.txt
' + /documents/**
+ /docker/**
- /docker/dockge/emby/config/metadata
- /docker/dockge/emby/config/plugins
- /docker/dockge/emby/config/logs
- /docker/dockge/emby/config/cache
- /docker/dockge/emby/config/data
- /docker/dockge/crafty/docker/servers
- /docker/dockge/crafty/docker/logs
- /docker/dockge/crafty/docker/import
- *
And had the same result.
I am not married to this specific script but I'd like to be able to specify to backup /documents and /docker, while keeping their folder structure and in seperate folders so it looks exactly how they look inside /user_name/ and to add folders to exclude on the fly as I install new dockers as I want my entire docker folder to backup but there are subdirectories I don't need that take up significant backup storage
Thank you!