Re: [BackupPC-users] tar backup - BackupPC_tarExtract exited with fail status 256

2018-11-26 Thread Craig Barratt via BackupPC-users
Jean-Marc,

Thanks for reporting back on this issue and confirming the uncompressed
file contents are the same.  As you saw, in 4.3.0 having a duplicate pool
file is no longer a fatal error for BackupPC_tarExtract - it just adds a
warning message to the XferLOG file.

I can't explain why two different but identical pool files got created.  It
must have been that the first file there failed to match when it should
have, causing BackupPC to think the new file was different.  This could be
due to a wide variety of reasons -  a bug somewhere, undetected memory
errors, an undetected disk error etc.  There's no real side effect, other
than a tiny increase in pool storage since you have two copies of the
file.  Eventually one of them will no longer be referenced (when the
corresponding backup is deleted) and it will be removed.

Craig


On Tue, Nov 6, 2018 at 2:51 AM Jean-Marc  wrote:

> Hi Craig,
>
> Yes, the files are the same :
>
> cmp file1.out file2.out
>
> (no output
>
>
> -rw-rw-r--. 1 backuppc backuppc 109K  6 nov.  08:55 file1.out
> -rw-rw-r--. 1 backuppc backuppc 109K  6 nov.  08:55 file2.out
>
>
> Le 06/11/2018 à 06:27, Craig Barratt via BackupPC-users a écrit :
>
>
>
> Thanks for checking.  While the compressed files are different, we should
> check if the uncompressed contents are the same.  Please try this:
>
> BackupPC_zcat /var/lib/BackupPC/cpool/4e/62/4e62ae8115cd3467dd5fd3a6b3a2c4d1
> > /tmp/file1.out
> BackupPC_zcat /var/lib/BackupPC/cpool/4e/62/4e62ae8115cd3467dd5fd3a6b3a2c4d101
> > /tmp/file2.out
> cmp /tmp/file1.out /tmp/file2.out
> rm -f /tmp/file1.out /tmp/file2.out
>
> ___
> 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 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] Find file given digest (and a decompression error)

2018-11-26 Thread Craig Barratt via BackupPC-users
Guillermo,

Actually, I'm still unsure if there is a problem with the files themselves
> or with the decompression, as pigz complains that "trailing junk was
> ignored" on both files. Any idea why could be that?


Pigz doesn't correctly support BackupPC compressed files, although it will
in some cases.  The reported error is likely the problem.  Please use
BackupPC_zcat instead and report back.

I added a guide to the Wiki to find out where a pool file is referenced

.

Craig


On Mon, Nov 26, 2018 at 4:31 PM Guillermo Rozas 
wrote:

> Hi,
>
> following the advice from Alex [1] I successfully created a script to
> check the cpool on the server for checksum errors. So far I've found 2
> files whose name do not match their checksum. Is there a simple way to find
> to which paths correspond those files given their MD5 digest?
>
> Actually, I'm still unsure if there is a problem with the files themselves
> or with the decompression, as pigz complains that "trailing junk was
> ignored" on both files. Any idea why could be that?
>
> Best regards,
> Guillermo
>
> [1] https://sourceforge.net/p/backuppc/mailman/message/36379588/
> ___
> 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 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] Find file given digest (and a decompression error)

2018-11-26 Thread Guillermo Rozas
Hi,

following the advice from Alex [1] I successfully created a script to check
the cpool on the server for checksum errors. So far I've found 2 files
whose name do not match their checksum. Is there a simple way to find to
which paths correspond those files given their MD5 digest?

Actually, I'm still unsure if there is a problem with the files themselves
or with the decompression, as pigz complains that "trailing junk was
ignored" on both files. Any idea why could be that?

Best regards,
Guillermo

[1] https://sourceforge.net/p/backuppc/mailman/message/36379588/
___
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] Error when try to upgrade to version 4.2.1

2018-11-26 Thread Mike Hughes
Yeah Ed, sorry this isn't clearer on the main page but Craig discourages 
building from source. If you're on Cent/RHEL, use this repo instead:
https://copr.fedorainfracloud.org/coprs/hobbes1069/BackupPC/

From: Ed Burgstaler 
Sent: Monday, November 26, 2018 12:38
To: backuppc-users@lists.sourceforge.net
Subject: [BackupPC-users] Error when try to upgrade to version 4.2.1

I have just attempted to install/update to version 4.2.1 from 3.3.2 and when I 
try to do so:
./configure.pl
I get the following error:
BackupPC needs the package version.  Please install version before installing 
BackupPC.

I have complied and installed BackupPC-XS-0.58 as well prior to updating.

I don't understand what that means can anyone help?


-Ed
___
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] BackupPC 4.3.0 released

2018-11-26 Thread Craig Barratt via BackupPC-users
BackupPC 4.3.0 
has been released on Github.  This release has a few new features (eg,
checking inode usage on the BackupPC filesystem) and some improvements (eg,
html table sorting), in addition to a number of bug fixes.

In addition, rsync-bpc 3.0.9.13
 and backuppc-xs
0.58  have been
released.  Those are very minor updates, and upgrading from rsync-bpc
3.0.9.12 or backuppc-xs 0.57 is not necessary to run BackupPC 4.3.0.

The changes since 4.2.1 are listed below.

I'd like to thank the folks that contributed to this release, and people
who helped debug issues.

Enjoy!

Craig

#
# Version 4.3.0, 25 Nov 2018
#

This release includes a couple of new features (eg, checking inode usage on
the BackupPC filesystem) and a few improvements (eg, html table sorting),
and several bug fixes:

   - Merged pull requests #200
   , #208
   , #216
   , #217
   , #229
   , #230
   , #231
   , #232
   , #233
   , #235
   .
   - Added checking of file system inode usage, with new configuration
   settings $Conf{DfInodeUsageCmd} and $Conf{DfMaxInodeUsagePct}.
   - bin/BackupPC_tarExtract: fixes to hardlink handling on incrementals,
   plus cleanup
   - bin/BackupPC_backupDuplicate: fixed directory creation for copying v3
   backups.
   - bin/BackupPC_backupDelete: couple of inode-related bug fixes; also do
   fsck if $Conf{RefCntFsck} != 0.
   - bin/BackupPC: fixed handling of dhcp hosts, reported by Jean-Marc.
   - bin/BackupPC: improved version check of rsync_bpc to allow period
   before "beta", reported by @ktenney  in
   issue #214 .
   - Added $Conf{EMailAdminSubject} to allow the admin email subject to be
   set.
   - Changed default $Conf{CgiDateFormatMMDD} to 2 (-MM-DD), submitted
   by @moisseev  (#231
   ).
   - Allow multiple groups in $Conf{CgiAdminUserGroup}, submitted by
   @moisseev  (#235
   ).
   - Improvements to html table sorting, and made more tables sortable,
   submitted by @brenard  and @moisseev
    (issue #199
   , PRs #200
   , #229
   , #230
   , #232
   ).
   - Add action type column to queue status page (#208
   ), submitted by @brenard
   .
   - lib/BackupPC/CGI/Summary.pm: host summary only reports age of
   completed backups (not partial or active), suggested by Michael Selway.
   - lib/BackupPC/CGI/HostInfo.pm: show active backup as partial if there
   is no job running (to handle case of abnormal exit of BackupPC), reported
   by @8666  in issue #220
   .
   - systemd/src/backuppc.service: added ExecReload, submitted by
   @opoplawski  (#233
   ).
   - lib/BackupPC/Xfer/Rsync.pm: empty $Conf{RsyncdPasswd} is no longer
   fatal; removed remaining mentions of RsyncdAuthRequired from conf/
   config.pl and lib/BackupPC/Config/Meta.pm; reported by @jooola
    in issue #224
   .
   - bin/BackupPC_dump: moved alarm($Conf{ClientTimeout}) to after all the
   pre-backup code (including expiry, duplication etc of backups, which could
   be slow) reported by Michael Selway.
   - bin/BackupPC_refCntUpdate: added a couple of bpc_progress_state prints
   to improve status reporting during nightly (-m), reported by Michael Selway.
   - lib/BackupPC/CGI/RSS.pm: added Disabled value to host info (copied
   from $Conf{BackupsDisable}); suggested by @danielmotaleite
    (issue #222
   ).
   - lib/BackupPC/Xfer/Rsync.pm: added checks 

Re: [BackupPC-users] Error when try to upgrade to version 4.2.1

2018-11-26 Thread Craig Barratt via BackupPC-users
Yes, that's a cryptic message, but it literally means what it says: there
is a perl package called "version" that is not installed.

So you need to use CPAN to install it prior to installing BackupPC, eg:

sudo cpan
install version


I'll make the error message clearer.

Craig

On Mon, Nov 26, 2018 at 10:39 AM Ed Burgstaler  wrote:

> I have just attempted to install/update to version 4.2.1 from 3.3.2 and
> when I try to do so:
>
> ./configure.pl
>
> I get the following error:
>
> *BackupPC needs the package version.  Please install version before
> installing BackupPC.*
>
>
>
> I have complied and installed BackupPC-XS-0.58 as well prior to updating.
>
>
>
> I don’t understand what that means can anyone help?
>
>
>
>
>
> -Ed
> ___
> 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 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] Error when try to upgrade to version 4.2.1

2018-11-26 Thread Ed Burgstaler
I have just attempted to install/update to version 4.2.1 from 3.3.2 and when
I try to do so:

./configure.pl

I get the following error:

BackupPC needs the package version.  Please install version before
installing BackupPC.

 

I have complied and installed BackupPC-XS-0.58 as well prior to updating.

 

I don't understand what that means can anyone help?

 

 

-Ed

___
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] Disable hostname lookup check

2018-11-26 Thread Daniel Berteaud
Le 23/11/2018 à 19:54, Craig Barratt via BackupPC-users a écrit :
> Daniel,


Hi Craig


>
> Here are two things to try (in theory either one should work):
>
>   * use an IP address (anything) instead of a bogus host name,
>

The hostname is not really bogus, as it's a valid one behind the
bastion. And it makes it easier to manage my .ssh/config on BackupPC's side


>   * set $Conf{NmbLookupFindHostCmd} to an empty string; if the DNS
> lookup fails and $Conf{NmbLookupFindHostCmd} is empty, then
> whatever host name you use should be used without a lookup error.
>

Great, I'll test this ASAP and let you know


Thanks for your answer :-)


Cheers,

Daniel

-- 

Logo FWS

*Daniel Berteaud*

FIREWALL-SERVICES SAS.
Société de Services en Logiciels Libres
Tel : 05 56 64 15 32
Matrix: @dani:fws.fr
/www.firewall-services.com/

___
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] DHCP backups - only once possible

2018-11-26 Thread Jean-Marc

Thanks for 4.3.0 upgrade !


Le 30/10/2018 à 06:36, Craig Barratt via BackupPC-users a écrit :

Jean-Marc,

Do you know when 4.2.2 will be available ?


I've been reviewing the mail list over the last few months, and there 
are still a couple of reported issues I'm trying to replicate or learn 
more about.


Hopefully I get 4.2.2 out by the end of November.
___
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/