Skip to content

Instantly share code, notes, and snippets.

@vaibhaw
Last active July 9, 2020 22:06
Show Gist options
  • Save vaibhaw/dc6ed4e512d7a5f1fc644b0e8c14e9d9 to your computer and use it in GitHub Desktop.
Save vaibhaw/dc6ed4e512d7a5f1fc644b0e8c14e9d9 to your computer and use it in GitHub Desktop.
rclone commands
# exclude a directory
rclone sync src_dir g_storage:dest_dir -v --exclude "/SomeFolder/**" --dry-run
# sync vs copy
# sync is destructive whereas copy is not. sync will remove extra files on destination
# limit http transactions
rsync --tpslimit 10 copy src_dir dest_dir
# print progress
rsync -P copy src_dir dest_dir
# finish checking before starting the transfer
# default mode is start the trasnfer asap
rsync --check-first copy src_dir dest_dir
# logging; more the v, more the logging
rsync -vvv copy src_dir dest_dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment