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

 From the config file:
> # Exponential expiry is specified using an array for $Conf{FullKeepCnt}:
> #
> #   $Conf{FullKeepCnt} = [4, 2, 3];
> #
> # Entry #n specifies how many fulls to keep at an interval of
> # 2^n * $Conf{FullPeriod} (ie: 1, 2, 4, 8, 16, 32, ...).
> #
> # The example above specifies keeping 4 of the most recent full backups
> # (1 week interval) two full backups at 2 week intervals, and 3 full
> # backups at 4 week intervals, eg:
> #
> #    full 0 19 weeks old   \
> #    full 1 15 weeks old    >---  3 backups at 4 * $Conf{FullPeriod}
> #    full 2 11 weeks old   / 
> #    full 3  7 weeks old   \____  2 backups at 2 * $Conf{FullPeriod}
> #    full 4  5 weeks old   /
> #    full 5  3 weeks old   \
> #    full 6  2 weeks old    \___  4 backups at 1 * $Conf{FullPeriod}
> #    full 7  1 week old     /
> #    full 8  current       /
> #
> # On a given week the spacing might be less than shown as each backup
> # ages through each expiry period.  For example, one week later, a
> # new full is completed and the oldest is deleted, giving:
> #
> #    full 0 16 weeks old   \
> #    full 1 12 weeks old    >---  3 backups at 4 * $Conf{FullPeriod}
> #    full 2  8 weeks old   / 
> #    full 3  6 weeks old   \____  2 backups at 2 * $Conf{FullPeriod}
> #    full 4  4 weeks old   /
> #    full 5  3 weeks old   \
> #    full 6  2 weeks old    \___  4 backups at 1 * $Conf{FullPeriod}
> #    full 7  1 week old     /
> #    full 8  current       /

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, then 1 backup per month for 12 months (one full per 
month till the end of the year) and then you will get 100 (this just 
should be a big number) backups that are every 7-8 months, which is as 
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 
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!

-- 
Randy Barlow
http://electronsweatshop.com

But you are a chosen race, a royal priesthood, a holy nation, a people 
for his own possession, that you may proclaim the excellencies of him 
who called you out of darkness into his marvelous light. Once you were 
not a people, but now you are God's people; once you had not received 
mercy, but now you have received mercy. ~1 Peter 2:9-10


-------------------------------------------------------------------------
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/

Reply via email to