Synching two folders with rsync


/ Published in: Bash
Save to your folder(s)

This is useful for syncing two folders on different computers over ssh (the default transport of rsync).


Copy this code and paste it in your HTML
  1. rsync -av --delete user@host:/home/ronen/folder/ /home/ronen/folder/ # the --delete enables rsync to delete files

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.