Created
November 30, 2014 15:54
-
-
Save mchirico/b6e7ca61fdbc3b870b98 to your computer and use it in GitHub Desktop.
Keeping files in sync between servers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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