CLI tool to run upload/sync jobs with rclone.
rclone:
config: /home/seed/.config/rclone/rclone.conf
path: /usr/bin/rclone
stats: 30s
service_account_remotes:
tv: /opt/rclone/service_accounts/crop
movies: /opt/rclone/service_accounts/crop
music: /opt/rclone/service_accounts/crop
4k_movies: /opt/rclone/service_accounts/crop
source_4k_movies: /opt/rclone/service_accounts/crop
staging: /opt/rclone/service_accounts/staging
global_params:
default:
move:
- '--order-by=modtime,ascending'
- '--transfers=8'
- '--delete-empty-src-dirs'
sync:
- '--fast-list'
- '--tpslimit-burst=50'
- '--max-backlog=2000000'
- '--track-renames'
- '--use-mmap'
- '--no-update-modtime'
- '--drive-chunk-size=128M'
- '--drive-use-trash=false'
dedupe:
- '--tpslimit=5'
uploader:
- name: cloudbox_unionfs
enabled: true
check:
limit: 360
type: age
hidden:
cleanup: true
enabled: true
folder: /mnt/local/.unionfs-fuse
type: unionfs
local_folder: /mnt/local/Media
remotes:
clean:
- 'gdrive:'
- 'staging:'
move: 'staging:/Media'
move_server_side:
- from: 'staging:/Media'
to: 'gdrive:/Media'
rclone_params:
global_move: default
move_server_side:
- '--delete-empty-src-dirs'
global_dedupe: default
- name: tv
enabled: true
check:
limit: 1440
type: age
local_folder: /mnt/local/Media/TV
remotes:
move: 'tv:/Media/TV'
rclone_params:
global_move: default
- name: movies
enabled: true
check:
limit: 720
type: age
local_folder: /mnt/local/Media/Movies
remotes:
move: 'movies:/Media/Movies'
rclone_params:
global_move: default
syncer:
- name: 4k_movies
enabled: true
source_remote: 'source_4k_movies:/'
remotes:
sync:
- '4k_movies:/'
dedupe:
- '4k_movies:/'
rclone_params:
global_sync: default
global_dedupe: default
- Clean - Perform clean for associated uploader job(s).
crop clean --dry-run
crop clean -u google
crop clean
- Upload - Perform uploader job(s)
crop upload --dry-run
crop upload -u google
crop upload -u google --no-check
crop upload
- Sync - Perform syncer job(s)
crop sync --dry-run
crop sync -s google
crop sync
- Manual - Perform manual sync/copy job(s)
crop manual --copy --src remote1:/Backups --dst remote2:/Backups --sa /opt/service_accounts -- --dry-run --drive-use-trash=false
crop manual --sync --src remote1:/Backups --dst remote2:/Backups --sa /opt/service_accounts --dedupe -- --drive-use-trash=false
Make use of --dry-run
and -vv
to ensure your configuration is correct and yielding expected results.
- rclone - Without this awesome tool, this project would not exist!
- sasync - Sync ideas and service account technique originated from here.
If you find this project helpful, feel free to make a small donation to the developer:
-
Monzo: Credit Cards, Apple Pay, Google Pay
-
GitHub Sponsor: GitHub matches contributions for first 12 months.
-
BTC: 3CiHME1HZQsNNcDL6BArG7PbZLa8zUUgjL