Re: [BackupPC-users] Howto create and keep yearly backups

2007-06-23 Thread Matthias Meyer
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
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] How do I setup OpenSSH - Here is a script which can do this

2007-06-23 Thread Matthias Meyer
Hello,

I compile the steps, described in 
http://backuppc.sourceforge.net/faq/ssh.html#how_do_i_setup_openssh
into a bash script called "BackupPC_accessSSH".

Hope it is usefully for other Backuppc User.
It has to run as user backuppc. Therefore it needs execute-rights for at 
least the backuppc user.
WETHER:
chown backuppc:backuppc BackupPC_accessSSH
chmod u=rwx,og-rwx BackupPC_accessSSH
OR:
chmod o=rwx BackupPC_accessSSH

Maybee the developers decide to integrate this script into the backuppc 
package.

with best regards
Matthias
-- 
Don't Panic


BackupPC_accessSSH
Description: application/shellscript
-
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
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Howto create and keep yearly backups

2007-06-23 Thread 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

 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
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] The web interface may be confusing for BackupFilesExclude

2007-06-23 Thread Randy Barlow
Randy Barlow wrote:
> I noticed that I have a ton of errors on the backup of my laptop of a 
> folder that I thought I had in the BackupFilesExclude, and it turns out 
> that I had simply misinterpreted the Web Interface.  I had used the New 
> Key: part to put in the paths I didn't want to backup, rather then 
> putting the share name there and then next to it putting the paths in 
> that share that I didn't want to backup.  I see how it works now, but it 
> wasn't completely intuitive to me, and I honestly didn't figure out the 
> problem until I took a look at /etc/BackupPC/config.pl and had a big 
> "Aha!" moment :)  Not sure what I would suggest to improve it though, 
> except perhaps to use different language.  Perhaps say "Share Name" 
> instead of "New Key" and in the boxed that appear next to the share 
> names, some kind of label like "Paths relative to share to be excluded" 
> (maybe that's too long...) so it's more clear?

Sorry for replying to my own thread, but one more thought I had: I think 
the web interface should generate an error for a user that tries to put 
values in "New Key" that aren't listed as a share name (Such as the 
variable RsyncShareName if rsync in the transport method).  Since my 
RsyncShareName = '/', it shouldn't allow me to list '/tmp' as a "New 
Key", as an example.  If this had given me an error, I might have 
figured out what was going on, and at least wouldn't have been trying to 
backup NCSU's entire distributed file system (gobs and gobs of 
terrabytes onto my tiny 160 GB HD :))

Thanks again!

-- 
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
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] The web interface may be confusing for BackupFilesExclude

2007-06-23 Thread Randy Barlow
I noticed that I have a ton of errors on the backup of my laptop of a 
folder that I thought I had in the BackupFilesExclude, and it turns out 
that I had simply misinterpreted the Web Interface.  I had used the New 
Key: part to put in the paths I didn't want to backup, rather then 
putting the share name there and then next to it putting the paths in 
that share that I didn't want to backup.  I see how it works now, but it 
wasn't completely intuitive to me, and I honestly didn't figure out the 
problem until I took a look at /etc/BackupPC/config.pl and had a big 
"Aha!" moment :)  Not sure what I would suggest to improve it though, 
except perhaps to use different language.  Perhaps say "Share Name" 
instead of "New Key" and in the boxed that appear next to the share 
names, some kind of label like "Paths relative to share to be excluded" 
(maybe that's too long...) so it's more clear?

I love BackupPC and I recommend it to all my friends, thanks for the 
killer F/OSS app!

-- 
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
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/