[CoLoCo] Example backup scripts

David L. Willson DLWillson at TheGeek.NU
Mon Mar 17 16:09:48 GMT 2008


I'm sorry, I meant to attach two, not one.  This time, I've attached both, so you can
delete the other message.

On Mon, 17 Mar 2008 09:03:34 -0700, David L. Willson wrote
> The question of how to back things up comes up pretty often.  I like to take advantage
> of the capabilities of Linux by using hard-links and rsync in a relatively simple
> home-brewed script that I just customize a little and drop into root's 
> crontab.  So, take a look through these two scripts that I am using at 
> customer-sites and see if you can't whip up something for your own use.
> 
> They basically copy the last successful backup into a new tree for the day as
> hard-links, and then update that tree with rsync.
> 
> You can reduce historical granularity, or shorten the history window, by deleting
> old/in-between backups.  You'll recover an appropriate amount of space on your 
> backup volume and still have "full" backups in all the days you don't delete.  
> Each day's folder is really a full backup, it just doesn't double-store 
> unchanged files, so each day's backup only takes up space for it's differences.
> 
> FWIW, I hear from Kevin Fries that BackupPC does all this and more, I just haven't
> gotten around to trying it out.  Honestly, I think running my own script is 
> more fun.
> 
> David L. Willson
> Trainer/Engineer/Consultant
> MCT, MCSE, Linux+
> (720) 333-LANS


David L. Willson
Trainer/Engineer/Consultant
MCT, MCSE, Linux+
(720) 333-LANS

-------------- next part --------------
A non-text attachment was scrubbed...
Name: SMB-rsync-backup.sh
Type: application/x-shellscript
Size: 2815 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/ubuntu-us-co/attachments/20080317/5ac15eba/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: backup.sh
Type: application/x-shellscript
Size: 1064 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/ubuntu-us-co/attachments/20080317/5ac15eba/attachment-0001.bin 


More information about the Ubuntu-us-co mailing list