[BackupPC-users] Only v0 showing in backup history

2010-12-19 Thread Daniel Harvey
Hi,

When browsing backups through the web interface ("Directory backup history for 
" page), the page only shows version 0 of all files.

However, I can restore the different versions correctly via the command line 
tools.

I am running version 3.2 of BackupPC.

Any ideas?

Thanks in advance,
Daniel.

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Different Backup schedule issue (hourly and daily)

2010-12-19 Thread Matthias Meyer
mailing.lists.wam mailing.lists.wam wrote:

> Hi,
> 
> I'm having strange issues with BackupPC 3.1.0 on ubuntu 10.04.
> 
> 1) I would like to configure backup schedule for a specified host this
> way, but couldn't find suitable config:
> 
> Backup every hour and keep 72 backups ( 3 days) ==> IncrPeriod 0.03 ?
> IncrKeepCNT 72 ? IncrKeepCntMin 72 ? IncrLevels ?
> Keep 32 Full backups (a bit more than a month) => FullPeriod => 0.9 ?
> FullKeepCntMin => 32 ?
> Keep 12 Months backups (1 year)

IncrPeriod=0.04 (because one day = 24hours, 1/24=0,0416 
~0,04)
IncrKeepCnt=72
IncrLevels = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, ... , 24]
FullPeriod=0,97 (every day a full backup)
FullKeepCnt=[32, 0, 0, 0, 0, 12](32 backups at 1 * $Conf{FullPeriod} = 
1day
(0 backups at 2 * $Conf{FullPeriod} = 
2day
(0 backups at 4 * $Conf{FullPeriod} = 
4day
(0 backups at 8 * $Conf{FullPeriod} = 
8day
(0 backups at 16 * $Conf{FullPeriod} = 
16day
(12 backups at 32 * $Conf{FullPeriod} = 
32day

> 
> In this case does the deduplication take care of hard disk drive space ?
Deduplication will also work in the above case and will save hard disk
space.
> 
> 2) For the other hosts i would like to setup schedule this way:
> Incremental each day
> Full on Sunday afternoon
> Keep 2 Fulls backups and 6 incremental for each full backup,
> I setup the schedule like this :
> FullPeriod = 6.9
> FullKeepCNT = 2
> IncrPeriod = 0.9
> IncrKeepCNT = 6
> IncrKeepCntMin = 1
> IncrLevels = 1,2,3,4,5,6
> Blackout Periods hourbegin=8, hourEnd=22, weekDays=1,2,3,4,5
> 
> Is this setup correct ? BackupPC would'nt make some backup sometimes, many
> hosts has "Nothing to do" state and Incremental Age of backup > 1.

I didn't know if BackupPC supports so frequent backups.

If you will save 6 incremental for each full you need IncrKeepCnt = 12.
Nobody can guarantee that the full backup runs at sunday.
e.g.:
Incrementals run fine from Monday until Saturday.
Client is down on Sunday.
The full backup will run at the following Monday. The next 6 incrementals
will run from Tuesday until Sunday and the next full will run at monday
again.

> Thanks for all your advices.

br
Matthias
-- 
Don't Panic


--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] *BUMP* Re: BackupPC perl code hacking question... (Craig any chance you might have a suggestion?)

2010-12-19 Thread Jeffrey J. Kosowsky
Jeffrey J. Kosowsky wrote at about 12:53:28 -0500 on Monday, December 13, 2010:
 > For reasons I can explain later, I am trying to set
 > $Conf{RsyncdPasswd} in the main routine of BackupPC_dump (I am
 > actually trying to do something a bit more complex but this is easier
 > to understand).
 > 
 > Now since %Conf = $bpc->Conf(), I would have thought that for example
 > setting $Conf{RsyncPasswd} = "mypasswd" would then be pushed down to
 > all the routines called directly or indirectly from BackupPC_dump.
 > 
 > However, in Rsync.pm where the value of $Conf{RsyncPasswd} is actually
 > used, the value remains at ''.
 > 
 > (Of course setting the paramter the "normal" way within a config file
 > works and shows up as set in Rsync.pm)
 > 
 > So why isn't it working when I set it at the top level?
 > And what would I have to set at the top level to make it properly
 > passed to Rsync.pm?
 > 
 > I'm sure I must be missing something about how perl inherits and/or
 > overwrites variables... but I am stumped here...
 > 
 > --
 > Lotusphere 2011
 > Register now for Lotusphere 2011 and learn how
 > to connect the dots, take your collaborative environment
 > to the next level, and enter the era of Social Business.
 > http://p.sf.net/sfu/lotusphere-d2d
 > ___
 > BackupPC-users mailing list
 > BackupPC-users@lists.sourceforge.net
 > List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
 > Wiki:http://backuppc.wiki.sourceforge.net
 > Project: http://backuppc.sourceforge.net/

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] rrdtool patch didn't display actual graphics

2010-12-19 Thread Matthias Meyer
Tyler J. Wagner wrote:

> On Tue, 2010-12-14 at 04:02 +0100, Matthias Meyer wrote:
>> Hi,
>> 
>> After a system crash and restore the famous rrdtool graphic (a patch in
>> the debian package of BackupPC 3.1.0) didn't be shown in an actual
>> version. It seems that the graphic from before the crash will be shown.
>> The /var/lib/backuppc/log/pool.rrd as well as /var/log/backuppc/pool.rrd
>> seems to be updated every night.
>> ~#ls -dl /var/lib/backuppc /var/lib/backuppc/log
>> /var/lib/backuppc/log/pool.rrd /var/log/backuppc/
>> /var/log/backuppc/pool.rrd
>> drwxr-xr-x 9 backuppc backuppc  4096 11. Dez 14:55 /var/lib/backuppc
>> drwxr-x--- 2 backuppc backuppc  4096 13. Dez 21:53 /var/lib/backuppc/log
>> -rw-r- 1 backuppc backuppc 11744 13. Dez 02:57
>> /var/lib/backuppc/log/pool.rrd
>> drwxr-xr-x 2 backuppc backuppc  4096 14. Dez 03:00 /var/log/backuppc/
>> -rw-r- 1 backuppc backuppc 11744 14. Dez 03:55
>> /var/log/backuppc/pool.rrd
>> 
>> Another rrdtool, running on my server within webmin, works right.
>> Therefore I assume that all necessary components are available/installed.
> 
> Did your CPU architecture change (i386 to amd64) after the crash? If so:
> 
>
http://www.tolaris.com/2010/09/06/rrdtool-this-rrd-was-created-on-other-architecture/
> 
> If not, use "rrdtool info /var/lib/backuppc/log/pool.rrd" to verify the
> file is good.
> 
> Regards,
> Tyler
> 
Thanks for the hint.
I don't know why but starting with the next day all working fine.
I didn't change anything.
Maybee it is possible that:
rrdtool runs only after a succcessfull run of BackupPC_nightly
BackupPC_nightly didn't run successfull some nights because of server
restarts or something like this.

Thanks nevertheless
Matthias
-- 
Don't Panic


--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] Idea for adding md5sums and reverse-pool lookup to BackupPC

2010-12-19 Thread Jeffrey J. Kosowsky
Here is an idea for adding md5sum consistency checks along with a
rough ability to reverse-lookup the pc tree entries that are hard
linked to any given pool entry. (It probably is not worth coding if
ver 4.0 is near since all this functionality reportedly will be built
into the new version)

1. Create new trees called say 'md5sum' and 'cmd5sum' parallel to the
   pool and cpool directory trees
2. Whenever a new file is *added* to the pool/cpool, calculate the full
   file md5sum and create a new file with the same partial md5sum name
   (and chain numbering) in the corresponding md5sum/cmd5sum tree with
   first line containing the full file md5sum
3. Whenever a (new) pc file is linked/copied to the pool append the pc
   file path (starting from TopDir) to the corresponding file in the
   md5sum/cmd5sum tree
4. Whenever a pool file is deleted or a chain is renumbered which I believe
   only happens during BackupPC_nightly (and of course also in my
   BackupPC_fixLinks script), do the corresponding renumbering on the
   parallel md5sum/cmd5sum entry

Now you can go:
A. pc tree entry -> pool entry (this is in general a many to one mapping)
   Calculate partial file md5sum and find the entry in the
   corresponding pool/cpool (if there is a chain then choose the chain
   element with the same inode).

   This is relatively fast since you only need to read approximately
   the first MB (and match the inode number if there is a chain)

B. pool entry -> pc entries (this is in general a one to many mapping)
   Lookup corresponding entry in the md5sum/cd5sum tree and look at
   the lines starting after the first md5sum line

C. Check pool (and thus indirectly pc chain validity).
   Compare md5sums of pool/cpool entries with the first line of the
   corresponding entrie in the md5sum/cmd5sum tree.

   This is fast since the number of lines in each entry is o(#backups).

Note when backups are deleted, one could theoretically go through the
md5su/cmd5sum trees and delete the corresponding entries for each
deleted pc tree file. However, this is quite expensive since not only
would you need to traverse the entire deleted backup tree, but you
would have to calculate the partial file md5sums to figure out where
it lies in the md5sum/cmd5sum tree. But there is really very little
downside to not deleting the entries from the md5sum/cmd5sum tree
since at worse, we have some entries that no longer have corresponding
pc tree entries. And even if you delete the last backup and then a new
backup with the same number gets created, you know that the last
matching entry is the valid one.

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] [BackupPC-devel] Development feedback & discussion for Backuppc 4.0??

2010-12-19 Thread Jeffrey J. Kosowsky
Craig Barratt wrote at about 17:04:23 -0800 on Saturday, December 18, 2010:
 > Jeffrey,
 > 
 > Sorry about the delay in replying.
 > 
 > I'd be happy to summarize some of what I've done and some of what
 > is still planned.  Hopefully I'll have the time to start a thread
 > on the devel list.

Excellent & Thanks.
One question, do you have any *rough* ETA about when the next version
may be ready and stable for use?

The reason I ask is that there are various ideas I have been
considering implementing that would add robustness to v3.0 but that
would presumably be unnecessary in your 4.0 implementation.

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/