Steps To Install And Use RSYNC

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 user@ipaddress:/source/ /destination/

example:

rsync -a root@192.168.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 :947

Tags:

  1. No comments yet.

SetPageWidth
Content Protected Using Blog Protector By: PcDrome.

Mahol Dot Org is Stephen Fry proof thanks to caching by WP Super Cache