Skip to content

Instantly share code, notes, and snippets.

@jpina
Last active December 27, 2016 17:19
Show Gist options
  • Save jpina/f8ac5f4822391020e8d2 to your computer and use it in GitHub Desktop.
Save jpina/f8ac5f4822391020e8d2 to your computer and use it in GitHub Desktop.
Sync your local files against a remote

Sync your local files against a remote

$ rsync --partial --progress --rsh=ssh SOURCES DEST_HOST:DEST_PATH

Example

$ rsync --partial --progress --rsh=ssh *.zip user@remote:/home/user/backup

Sync local source to local destination directories

$ rsync -av /source/ /destination/
# (after checking)
$ rm -rf /source/

Sync remote calibre library to local

rsync -av --partial --progress remote_host:/home/user/calibre_backup ./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment