Am Samstag 23 Juni 2007 19:44 schrieb Randy Barlow:
> Matthias Meyer wrote:
> > How I can reach the goals:
> > - get and keep till end of the year one full backup each month
> > - get and keep forever one full backup each year
>
> Suppose that the Full Period is set to 6.97 as the default install set
> it. Let's just call this 7.
>
> Then $Conf{FullKeepCnt} = [4, 0, 12, 0, 0, 100];
>
> will do something close to what you want. You will get 1 Backup per
> week for 4 weeks,
right!
> then 1 backup per month for 12 months (one full per
> month till the end of the year)
No. I believe I would get one Backup every 4 weeks. 48 weeks each year. I
lost exactly 4 weeks ;-) Therefore 13 would be the correct number ;-)
> and then you will get 100 (this just
> should be a big number) backups that are every 7-8 months, which is as
? should be $Conf{FullKeepCnt} = [4, 0, 12, 100];
> close to yearly as you can get without skipping any years. You could
> add another 0 before the 100 and it would keep a backup about every 15
? should be $Conf{FullKeepCnt} = [4, 0, 12, 0, 100]; for 100 backups every
16 month.
> months or so, which would skip years from time to time. To make it more
> exactly to years, you can
> play with $Conf{FullPeriod}. Hope this helps!
If I use:
$Conf{FullPeriod} = 7,6; # calculated as 365/12/4
$Conf{FullKeepCnt} = [4, 0, 12, 100];
I should get the weekly backups after 8, 15, 23 and 30 (exactly 30,4) days.
and I should get the monthly backups after 30, 61, 91, 122, 152, 182, 213,
243, 274, 304, 334 and 365 days.
And
$Conf{FullPeriod} = 7,61; # calculated from (365*4+1)/4/12/4
should respect also the leap year.
But to get a yearly backup every last or first week in a year is a
challenge, isn't it ?
Could /etc/cron.monthly provide a solution ?
Matthias
--
Don't Panic
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/