<SNIP>
> Here's the gist of it.  As always, with rsync, slashes are VERY important!
> 
> #!/bin/bash
> 
> cd /backups
> rm -rf 6
> mv 5 6
> mv 4 5
> mv 3 4
> mv 2 3
> mv 1 2
> cp -al 0 1
> 
> rsync -a --delete /dir/to/backup/ /backups/0/subdir/
> rsync -a --delete /another/dir/to/backup/ /backups/0/another_subdir/
> 

Also check out http://www.nongnu.org/rdiff-backup/ for another way to
attack the problem.  It should reduce the amount of diskspace required
(compared to Steve's solution) and it gives you some very nice options
like "--restore-as-of 2004-12-25" to easily restore a version from n
days ago.

Jake

--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to