These are some simple steps to install and use RSYNC client.
1) Download RSYNC and its dependencies from
http://packages.debian.org/etch/rsync
2) Copy all binaries in /sbin folder
3) Copy all libraries in /lib folder
4) If some library is missing download it from debian,
or compile from source if available and copy in /lib folder.
5) create /root/.ssh directories
6) Now you need to create a key,type the following command:
ssh-keygen -t dsa
If it asks you for a passphrase, just hit , to avoid putting one in.
This will create three files
id_dsa
id_dsa.pub
known_hosts
7) To run rsync client run
rsync -a [email protected]:/source/ /destination/
example:
rsync -a [email protected]8.2.145:/client_pc/media /home/sami/
8) Enter the password.
In the above example,all the files in 192.168.2.145:/client_pc/media
will be copied in /home/sami/media/
Running RSYNC without prompting for password.
———————————————
1) Copy the contents of id_dsa.pub created in step 6 above on the server pc in
file ~/.ssh/authorized_keys.
$ cat id_dsa.pub >>~/.ssh/authorized_keys
$ chmod 700 ~/.ssh/authorized_keys
2) Run rsync from client and test.It will not ask for password.
Number of View :2964No related posts.
Tags: linux
This entry was posted on Sunday, March 21st, 2010 at 2:40 am and is filed under Tips & Tricks. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.