Wednesday, August 03, 2005

Use rsync to create backups on other computers

It's a good idea to create backups of your source code. Today I've created some simple scripts that create a subversion dump file and upload it to one of my other computers. The scripts use ssh and rsync.

The tutorial I used is Using Rsync and SSH it explains how you can transport automatically and save/secret.

Each time I commit the source code to the repository, a post-commit hook is executed. This post-commit script creates a dump file of the repository and then uses rsync+ssh to upload it to the other computer.

0 Comments:

Post a Comment

<< Home