Skip to content

Instantly share code, notes, and snippets.

@mchirico
Created November 30, 2014 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mchirico/b6e7ca61fdbc3b870b98 to your computer and use it in GitHub Desktop.
Save mchirico/b6e7ca61fdbc3b870b98 to your computer and use it in GitHub Desktop.
Keeping files in sync between servers
TIP 22:
Keeping Files in Sync Between Servers.
The remote computer is "192.168.1.171" and has the account "donkey". You want
to "keep in sync" the files under "/home/cu2000/Logs" on the remote computer
with files on "/home/chirico/dev/MEDIA_Server" on the local computer.
$ rsync -Lae ssh donkey@192.168.1.171:/home/cu2000/Logs /home/chirico/dev/MEDIA_Server
"rsync" is a convient command for keeping files in sync, and as shown here will work
through ssh. The -L option tells rsync to treat symbolic links like ordinary files.
Also see [http://www.rsnapshot.org/]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment