Re: [BackupPC-users] host/new directory does not exist

2009-10-02 Thread Craig Barratt
Alexander writes:

 I just added a new client to the hosts file, but I keep getting this
 error No backup directory /var/lib/backuppc//pc/server-wina/new... Why
 is this happening?

This means the backup failed very early in the process.

 Sending args: --server --sender -v --ignore-times . .
 Remote[2]: skipping directory .

You have mangled your RsyncArgs.  You aren't asking it to do
anything.

The default is typically:

$Conf{RsyncArgs} = [
  '--numeric-ids',
  '--perms',
  '--owner',
  '--group',
  '-D',
  '--links',
  '--times',
  '--block-size=2048',
  '--recursive'
];

Craig

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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] backups suddenly inconsistent

2009-10-02 Thread Andy Thompson
Things have been running along fine on 3.2beta0 and then suddenly backups 
aren't kicking off for 1 or 2 (and now three on one this morning) days on 
random clients.  I don't get an email though I have the 
emailnotifyoldbackupdays set to 2 on the server.

There are no errors in the log file or any other indication why the backup 
doesn't run.  I can start a full or incremental manually via the web interface 
and it runs without errors.  

Any thoughts appreciated.

-andy


--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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] Best way to recover from corrupted files

2009-10-02 Thread Michael Stowe

I'd start by questioning your filesystem -- quite frankly, if it's
reiserfs, you're better off just wiping it out and starting over; it has
an unnerving propensity to reconnect files to the tree in bizarre ways and
it's particularly vulnerable (and difficult to recover from) damage.

If you're not running xfs or jfs, it's probably a good time to seriously
rethink your choice of file system.

On general principle, I'd recommend wiping out the pool and starting over,
since if you can't trust your filesystem, how can you trust your backups? 
(You weren't specific about what kind of rsync errors you're getting, but
if it's related to a corrupt pool, by all means, clear out the pool.)

 Hi,

 I have a backuppc 2.1.2 installation which lost power and crashed. It
 looks like some files in the pool were corrupted as now we get the
 RStmp files that are not the right size.  Normally, I would do a full
 backup via tar to get a good set of files into the pool, but this
 client is a windows machine.  Any ideas on how to figure out which
 files are the problems so I can delete them from the pool?  Or are
 there better ideas?  Right now the full backup via rsync seems to
 work, but we get a lot of errors in the log and the 'new'  file
 directory is not deleted from disk so I am not sure about it.

 cheers,

 ski


--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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] backups suddenly inconsistent

2009-10-02 Thread Michael Kuss
On Fri, Oct 2, 2009 at 2:06 PM, Andy Thompson
athomp...@mooreheadcomm.comwrote:

 Things have been running along fine on 3.2beta0 and then suddenly backups
 aren't kicking off for 1 or 2 (and now three on one this morning) days on
 random clients.  I don't get an email though I have the
 emailnotifyoldbackupdays set to 2 on the server.

 There are no errors in the log file or any other indication why the backup
 doesn't run.  I can start a full or incremental manually via the web
 interface and it runs without errors.

 Any thoughts appreciated.


Full disk?

Michael
--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf___
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] unclean pool

2009-10-02 Thread Tony Schreiner

On Oct 2, 2009, at 10:33 AM, Holger Parplies wrote:

 Hi,

 Tony Schreiner wrote on 2009-09-30 14:46:09 -0400 [Re: [BackupPC- 
 users] unclean pool]:
 On Sep 29, 2009, at 12:06 PM, Tony Schreiner wrote:
 On Sep 28, 2009, at 10:00 PM, Holger Parplies wrote:
 Tony Schreiner wrote on 2009-09-28 20:01:24 -0400 [[BackupPC- 
 users] unclean pool]:
 [...]
 Today I looked at the pool directory and found that many (even
 a majority) of the files there have a single link, shouldn't
 BackupPC_nightly be removing those?

 yes, it should. Is BackupPC_nightly being run (check the log files
 under $LogDir)?

 let me repeat that question, it was important:

 *Is BackupPC_nightly actually being run?*

 What are the values of

$Conf{BackupSchedule}

 Yes, that should of course be WakeupSchedule. Sorry about the typo.  
 Note that
 the '7' is in there twice. I don't know if that may be confusing  
 BackupPC. I
 don't think it should, but the code in question is confusing me  
 right now :).

 I'm trying to investigate further why my cpool is (apparently) not
 getting cleaned up.  I'm  looking at the code to BackupPC_nightly,  
 but
 I admit I'm not the l33test of perl programmers. I wonder if someone
 familiar with the code can help me a bit.

 Yes, but we should first make sure the code is in fact being run.

 The GetPoolStatus routine is using the find function (from Lib?) to
 scan the pool.

 Actually, it's the other way around. find() is using GetPoolStats()  
 to scan
 the pool.

 What file system type is your pool on? Have you recently installed  
 IO::Dirent?


Hi

Yes, you're right about find calling GetPoolStats, I write my message  
in too much haste.

But I think you are on the right track with your question about  
IO::Dirent; I reached this same conclusion just an hour or two ago.

My files system is XFS, which I failed to mention originally. I have  
just set IODirentOK=0 in Lib.pm and BackupPC_nightly is now actually  
doing some work.

Thanks,
Tony

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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] backups suddenly inconsistent

2009-10-02 Thread Andy Thompson
 Things have been running along fine on 3.2beta0 and then suddenly backups
 aren't kicking off for 1 or 2 (and now three on one this morning) days on
 random clients.  I don't get an email though I have the
 emailnotifyoldbackupdays set to 2 on the server.

 There are no errors in the log file or any other indication why the backup
 doesn't run.  I can start a full or incremental manually via the web
 interface and it runs without errors.

 Any thoughts appreciated.



Full disk?

Nope, only about 50% full... 1.3 TB used on a 2.5 TB array.

-andy


--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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] unable to restore via zip archives

2009-10-02 Thread Boyko Yordanov - Exsisto Ltd.
Hello list!

I've been playing w/ BackupPC version 3.2.0beta0 for a couple of days  
and I am facing the following issue:

I am unable to restore files via zip archives with compression (1-9).  
The web interface prompts me to save the file, but then the file is  
usually just a few kilobytes in size (no matter how many files I am  
selecting for restoration) and I am unable to extract anything from  
it. I am able to download a zero compression zip archive, but  
nothing if I set the compression to higher values. The other restore  
methods are working fine. I have all the necessary perl modules  
installed including Archive::Zip and the ones it depends on. There are  
no errors in the BackupPC log file, actually it just logs a normal  
entry like I've successfully downloaded the zip archive - but I did  
not.. at least the file I get seems somehow broken.

Could it be a bug or a known issue? Anyone noticing the same behavior  
w/ his BackupPC setup? I have two boxes running this version of  
BackupPC - I can't use zip archives for restoration on both of them,  
its just not working for me.

Thanks!

Boyko

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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] unable to restore via zip archives

2009-10-02 Thread Holger Parplies
Hi,

Boyko Yordanov - Exsisto Ltd. wrote on 2009-10-02 19:15:40 +0300 
[[BackupPC-users] unable to restore via zip archives]:
 [...] BackupPC version 3.2.0beta0 [...]
 I am unable to restore files via zip archives with compression (1-9).  
 The web interface prompts me to save the file, but then the file is  
 usually just a few kilobytes in size (no matter how many files I am  
 selecting for restoration) and I am unable to extract anything from  
 it. I am able to download a zero compression zip archive, but  
 nothing if I set the compression to higher values. The other restore  
 methods are working fine. I have all the necessary perl modules  
 installed including Archive::Zip and the ones it depends on. There are  
 no errors in the BackupPC log file, actually it just logs a normal  
 entry like I've successfully downloaded the zip archive - but I did  
 not.. at least the file I get seems somehow broken.

to rule out a browser problem, you should try it from the command line:

backuppc% /path/to/BackupPC_zipCreate -h hostname -n backupnum \
  -s /share/name -c 1 /paths/of/files/in/share  /tmp/test.zip

Aside from that, browsing the source code of zipCreate shows several comment
lines ending in 8(. They detail what file types can't be zipped. If you are
restoring files from a Unix system, you probably shouldn't be using zip files,
because you may be losing information. For data where you *know* that you have
no hardlinks, symlinks or special files, you are probably ok, but in most
cases you should be using tar. For Windoze restores, that might be a different
matter.

 Could it be a bug or a known issue? Anyone noticing the same behavior  
 w/ his BackupPC setup?

For whatever it's worth, I don't use zip restores, but a quick test of
BackupPC_zipCreate on BackupPC 2.1.2 (sorry :) shows that it seems to work
fine for me. I didn't test through a browser.

Regards,
Holger

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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] Variable in Host Configuration File

2009-10-02 Thread Valarie Moore
Thank you for taking the time to help me.

I've now setup my host configuration file, named colombia-jeixav.pl
as follows:

my $user = 'jeixav';
$Conf{ClientNameAlias} = 'localhost';
$Conf{XferMethod} = 'rsync';
$Conf{RsyncShareName} = /home/$user;
$Conf{RsyncClientCmd} = sudo -u $user \$rsyncPath \$argList;
$Conf{RsyncClientRestoreCmd} = sudo -u $user \$rsyncPath \$argList;

The ClientNameAlias remains because the BackupPC server backs up other
computers, so I think I must define either PingCmd or ClientNameAlias
within colombia-jeixav.pl. My hosts file looks like this:

colombia 0 backuppc
colombia-jeixav 0 jeixav
colombia-user2 0 user2

ecuador 0 backuppc
ecuador-user2 0 user2
ecuador-user3 0 user3

I think I found the thread where Jeffrey describes the $_[1] trick:
http://thread.gmane.org/gmane.comp.sysutils.backup.backuppc.general/17274
http://thread.gmane.org/gmane.comp.sysutils.backup.backuppc.general/17280

Given my hosts file, I was thinking that I'd be able to use $_[3] and
have hard-linked files like this:

$Conf{ClientNameAlias} = 'localhost';
$Conf{XferMethod} = 'rsync';
$Conf{RsyncShareName} = /home/$_[3];
$Conf{RsyncClientCmd} = sudo -u $_[3] \$rsyncPath \$argList;
$Conf{RsyncClientRestoreCmd} = sudo -u $_[3] \$rsyncPath \$argList;

Unfortunately, that doesn't seem to work.


--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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/