[LUNI] Critique my backup plans :)

D. Wade sushid at voxlox.com
Fri Jun 22 16:56:20 CDT 2007


Mark Stuart Burge wrote:
 >
 > If you have a 'one in / one out' system running then you can simplify
 > the script to mount either drive an the same mount point.

Thanks, Mark... I hadn't considered using the same mount point.

Anyone else?  Any issues with the use of hdparm to make the drives sleep?

So I'm NOT being a doofus? :)

> D. Wade wrote:
>> Hi all --
>>
>> I'm looking for a "doofus check" from y'all on my home file-server 
>> backup strategy.  I haven't seen anyone else try to approximate a 
>> tape-backup strategy like this, or else I'd be contented with 
>> following someone else's web advice. :)
>>
>> System is Ubuntu Dapper LTS, exporting shares via Samba. Share 
>> directories are on /srv/share/int0, a hard disk inside the box 
>> (/dev/hda2)
>> Backup targets are 2 separate hard disks in removable 5-1/4" caddies:
>>    /srv/share/ext0     (/dev/hdc2)
>>    /srv/share/ext1     (/dev/hdd2)
>> The plan is to keep the removable disks asleep to minimize heat, 
>> wear, and ohcraps, and run the following scripts daily/weekly to back 
>> up the shares.  The backup drives can theoretically be yanked and 
>> attached to 
>> another system to get the data if something bad happens to the server.
>>
>> Step 1 -- set TARGET to either "ext0" or "ext1" depending on which 
>> day/week it is
>> Step 2 -- Backup
>>    # wake up and mount the drives in the caddies
>>    mount /dev/hdc2
>>    mount /dev/hdd2
>>    # copy shared dirs to TARGET (ext0 or ext1)
>>    rsync -av /srv/share/int0/ /srv/share/$TARGET
>> Step 3 -- Put external drives back to Sleep
>>    # put em away
>>    umount /dev/hdd2
>>    umount /dev/hdc2
>>    # put em to sleep
>>    hdparm -Y /dev/hdd
>>    hdparm -Y /dev/hdc
>>
>> Thoughts?  Am I missing something silly?  This struck me as "the 
>> simplest thing that could possibly work."  Muchos appreciations for 
>> your eyes on this.
>>
>> --Derek W.


More information about the luni mailing list