Is Rsync like subversion, but for a server?

Posted by johnlai2004 on Server Fault See other posts from Server Fault or by johnlai2004
Published on 2010-04-18T22:48:02Z Indexed on 2010/04/18 22:53 UTC
Read the original article Hit count: 255

Filed under:

I'm trying to learn how to use rsync. I want to create daily backs up of my production server.

Right now I run the command

rsync -azr /var/www/* [email protected]:/var/www

Now let's say one day, I want to roll back the /var/www/ directory on my production server to last month's version. How do I tell rsync to retrieve version N?

On reading that rsync only copies differences between src and dest, I assumed rsync works like subversion where you commit changes to a destination, and keep track of every version, and with the option to checkout any version at anytime. Is that the way rsync works? It's like subversion but for an entire server? That would be great because then it means I don't have to do full ssh copies for my nightly backups.

© Server Fault or respective owner

Related posts about rsync