rsync remote to local automatic backup

Posted by Mark Molina on Server Fault See other posts from Server Fault or by Mark Molina
Published on 2013-07-01T13:10:42Z Indexed on 2013/07/02 11:07 UTC
Read the original article Hit count: 251

Because all my work is stored on a remote server I would like to auto backup my server monthly and weekly. My server is running Centos 5.5 and while searching the web I'm found a tool named rsync. I got my first update manually by using this command in terminal:

sudo rsync -chavzP --stats USERNAME@IPADDRES: PATH_TO_BACKUP LOCAL_PATH_TO_BACKUP

I then prompt my password for that user and bob's my uncle.

This backups the necessary files from my remote server to my local device but does somebody know how I can automate this? Like automatic running this script every sunday?

EDIT

I forgot to mention that I let direct admin backup the files I need and then copy those files from the remote server to a local server.

© Server Fault or respective owner

Related posts about linux

Related posts about backup