TIL that rclone
, the fantastic command line utility have equally fantastic options that make it easy and safe to synchronize your local and remote data.
You can do a dry run of the changes before they are actually made on the server. User dry-run
option. ❇️
You can see the progress of the sync/copy operation. Use --progress
option.
You can exclude one or more files from the copy/sync task. Use --exclude
option followed by a file matching pattern.
You can delete the remote files that are excluded during the copy/sync operation. Use --delete-excluded
option.
Here are a few commands I used today:
$ rclone sync ~/my-docs/ gdrive:docs-root/my-docs --progress
$ rclone sync ~/my-docs/ gdrive:docs-root/my-docs --progress
$ rclone sync ~/my-docs/ gdrive:docs-root/my-docs
--exclude ".DS_Store" --delete-excluded