Hosting again

Chris Benson chrisb at jesmond.demon.co.uk
Mon Nov 5 21:01:29 GMT 2007


On Mon, Nov 05, 2007 at 07:38:28PM +0000, David Cantrell wrote:
> On Mon, Nov 05, 2007 at 08:30:52AM +0000, Chris Benson wrote:
> 
> > Yeah, but I can only fit one generation onto a 1TB disk ...
> 
> Not even with funky hard link voodoo?

You mean like:
#!/bin/bash
TARGET=/mnt/backups/`uname -n`
SRC="/etc /boot /root /home /opt /usr/local /share /var"
DST=$TARGET/`date '+%Y-%m-%d-%H%M%S'`
PRV=`ls -rtd $TARGET/* | tail -1`
mkdir -p $DST
rsync --archive --delete --stats --link-dest=$PRV $SRC $DST

I've got the main filesystems backed up with a command like the above --
A crude attempt to emulate the NetApp snapshots we can use at work!

> http://rsnapshot.org/
> 
> </advert>

Hmmm. That looks a lot closer to my ideal 
	beta:~# apt-get install rsnapshot
	...
	Setting up rsnapshot (1.2.9-1) ...
Thank you very much!  That goes straight onto the recommended list :-)

But backing up (up to) a TB of data that doesn't change, just gets added
to, is a bit different.  I really just need a mirror of that.  Or rather
several mirrors!  

Drives to rebuild the RAID and the first caddy arrive tomorrow am. I'll 
be looking at something like
	rsync --archive --stats /library /mnt/backups/library
until I've got everything re-ripped.  By then perhaps I'll be able to
get 2TB for gbp200!
 
> Obviously it'll vary with how quickly your data changes, but I find that
> storing 7 daily backups, 5 weeklies and 3 monthlies has an overhead of

It works v.well for us at home, less well at work with people d/loading
.iso images, multi-GB log files and the like and leaving them laying around :-(

Thanks for the rsnapshot lead.
-- 
Chris Benson


More information about the london.pm mailing list