
crop
CLI tool to run upload/sync jobs with rclone.
Example Configuration
rclone:
config: /home/seed/.config/rclone/rclone.conf
path: /usr/bin/rclone
uploader:
google:
check:
limit: 360
type: age
enabled: true
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'
sa_folder: /opt/service_account_maker/service_accounts/crop
rclone_params:
move:
- '--transfers=8'
- '--delete-empty-src-dirs'
move_server_side:
- '--delete-empty-src-dirs'
dedupe:
- '--fast-list'
- '--tpslimit=50'
syncer:
4k_movies:
enabled: true
sa_folder: /opt/service_account_maker/service_accounts/crop
source_remote: 'source_4k_movies:/'
remotes:
sync:
- '4k_movies:/'
dedupe:
- '4k_movies:/'
rclone_params:
sync:
- '--fast-list'
- '--tpslimit-burst=50'
- '--max-backlog=2000000'
- '--track-renames'
- '--use-mmap'
dedupe:
- '--tpslimit=5'
Example Commands
- 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
Notes
Make use of --dry-run and -vv to ensure your configuration is correct and yielding expected results.
Credits
- rclone - Without this awesome tool, this project would not exist!
Donate
If you find this project helpful, feel free to make a small donation to the developer: