Thank God for backups!
Daniel Carrera
daniel.carrera at zmsl.com
Sat Apr 22 13:18:57 UTC 2006
Daniel Carrera wrote:
> I can help you setup a cron job to delete backups older than x-days. But
> first let's figure out what backup strategy makes sense for you.
I just wrote a script to do this (attached). There is only one
configuration line. If you want (for example) to delete backups older
than 15 days, set the $age variable to 15. Every time you run the script
(as root) it will delete all the backups older than 15 days.
So, here is a possible backup strategy for you:
* Full backups on Sunday.
* Incremental backups every day.
* Run this script every day (with $age=15).
With this setup, you'll always have a full backup that is at least 7
days old (expectd value, 10 days). So you'll always be able to recover
at least the past week's worth of work.
Note: I RECOMMEND $age=15 because that gives you at least a week of backups.
Cheers,
Daniel.
--
/\/`) http://opendocumentfellowship.org
/\/_/
/\/_/ A life? Sounds great!
\/_/ Do you know where I could download one?
/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: clean_backups
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060422/742135a6/attachment.ksh>
More information about the ubuntu-users
mailing list