Use rsync to backup files on Linux

Posted on May 25, 2008
Filed Under Linux |

you can use rsync to backup files on linux as follows:

rsync -av /etc/passwd /etc/group 11.11.11.11::etc /etcbak

But you may need to enter your password, which can not achieve automatically backup, if you do not want to enter yours password each time, you can use ssh-keygen to generate a key, public key will be stored in /root/.ssh directory of the remote server. The file name was renamed to authorized_keys,which you can put the backup order into the crontab.


Tags:

If you enjoyed this post, make sure you subscribe to my RSS feed!

Comments

Leave a Reply