[CoLoCo] Example backup scripts

David L. Willson DLWillson at TheGeek.NU
Mon Mar 17 16:22:57 GMT 2008


One more note on the scripts, and I think I'm done.  One of these scripts has been
in/working for 2.3 years, since before I knew that nested commands are properly done
like this $(expression), and that using backticks is archaic and much harder to read. 
Someday I'll update that script.

On Mon, 17 Mar 2008 09:09:48 -0700, David L. Willson wrote
> 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


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




More information about the Ubuntu-us-co mailing list