Rsync is a software that synchronizes files and directories using a small amount of data transfers. You can use this to backup data. This page will show you how to use rsync to synchronize files from a source machine.
[pub] path=/home/public read only=noReplace pub with any directory name you prefer. The path on the other hand should point to a valid nobody readable and writeable directory.
To transfer a file/directory, the basic command is rsync src dest. Below are some examples.
rsync rsync://server/pub/test.txt .Replace server with the name of your server, pub with the name of your directory, test.txt with the name of a file or directory you wish to download and replace . with a path to your local directory if you do not want to save into your current directory.
rsync test.txt rsync://server/pubReplace server with the name of your server, pub with the name of your directory, test.txt with the name of a file or directory you wish to upload.
Visit the forum to ask for help or to give a comment.
Posted on 8/19/2008 and last updated on 11/6/2009
Filed under System Administration