[BackupPC-users] Rsync client on WinXP - debugging tips requested

2006-04-19 Thread Brian LaMetterey

Hi,

  I'm having trouble getting a backup to complete successfully.  I am 
using BackupPC v2.1.2 on a Debian Sarge (3.1) box, and attempting to use 
the rsync XferMethod to back up a WinXP box running Cygwin, rsync 
v2.6.6, and sshd (OpenSSH_4.3p2).  I'm hoping to get some pointers and 
suggestions on how to go about debugging this further.  I'll apologize 
in advance for the forthcoming novella.


  When I attempt a backup, it fails reliably with:

2006-04-13 23:05:37 host: finish: removing in-process file Program 
Files/3DO/Support/Autorun.BMP

2006-04-13 23:05:37 host: Child is aborting
2006-04-13 23:05:37 host: Parent read EOF from child: fatal error!
2006-04-13 23:05:37 host: Sending csums, cnt = 49673, phase = 1
2006-04-13 23:05:37 host: Done: 140 files, 1285853 bytes
2006-04-13 23:05:38 host: Got fatal error during xfer (Child exited 
prematurely)


  I've also noticed that it leaves zombie rsync.exe and corresponding 
sshd.exe processes on my WinXP box.
  I've tried to modify rsync on the client and recompile with various 
suggested changes I found on the 'net, but nothing has had an impact so 
far.  For instance, Craig Barratt mentioned an issue with signals and 
msleep() back in 2003, and I tried that workaround described in 
http://www.mail-archive.com/rsync@lists.samba.org/msg07402.html just in 
case.  At one point I also tried rsync v2.6.7, but I backed down again 
since it made no positive impact.  I've read through the likely-looking 
sections in the docs, and read the FAQs on sourcegforge.net.
  I set $Conf{XferLogLevel} = 3; and $Conf{RsyncLogLevel} = 3; in my 
config.pl.  I've added my own debug logging down in 
.../lib/BackupPC/Xfer/Rsync.pm, just to verify that the correct command 
line and options are being used.  It all looks great to me.  The command 
being issued by BackupPC is:


/usr/bin/ssh -q -x -l user host /usr/bin/rsync --server --sender 
--numeric-ids --perms --owner --group --devices --links --times 
--block-size=2048 --recursive --exclude=/Documents\\\ and\\\ Settings 
--exclude=/MSOCache --exclude=/RECYCLER --exclude=/System\\\ Volume\\\ 
Information --exclude=/temp --exclude=/tmp --exclude=/WINDOWS/Temp 
--exclude=/WINDOWS/\\\$\\\* --timeout=600 --ignore-times . /cygdrive/c/


  I've verified that I can log in via ssh as 'user' to 'host', which is 
also evidenced by the fact that I get a file list and do get 140 files. 
 I've futzed with ClientTimeout in my config.pl as well as the 
--timeout option to rsync, but haven't had any impact beyond cutting 
backups off early if I set a very short timeout.
  I've verified that I have plenty of disk space (60GB) on the Linux 
box, permissions appear correct, CGI user appears correct, correct 
config.pl files are being read.  Whether the Windows firewall is on or 
off seems to make no difference, and no dropped packets show up in the 
firewall log.  I am running an iptables-based firewall script on the 
Linux box, but haven't seen anything in the logs.  I tried various 
exclusion lists (and no exclusions) in the rsync command.  I know, much 
of this seems like a stretch to try, but when you're stuck...
  Searching the 'net has turned up a number of individuals with 
similar-sounding issues, but no solutions that seem to fit me thus far. 
 I've also not seen any broad proclamations that what I am attempting 
cannot be done, so I am determined to keep trying.
  I've got perl 5.8.4 on the Linux box, and installed File::RsyncP 
v0.52. There are a couple of things in the perldoc that disturb me:

  It is compatible with Rsync 2.5.5(protocol version 26).
- Does this mean precisely what it says?  Or should I reasonably expect 
that rsync versions after 2.5.5 should work as well?
  File::RsyncP does not yet implement server functionality (acting 
like the remote end of a connection or a daemon).  Since the protocol is 
relatively symmetric this is not difficult to add, so it should appear 
in a future version.

- Is this a dated comment?  Does anyone know if this is still true?

  One thing I have not been able to figure out so far, is how to get 
more info from rsync.  Since I've never used rsync before, it may well 
be a D'Oh! thing I am doing, I dunno.  For instance, I can verify ssh 
operation by issuing a manual command from the Linux box, but I don't 
see how to issue a manual 'rsync --server --sender ...' command from the 
WinXP box.  In fact, I'm not even sure it's possible, because I don't 
understand the underlying operation of rsync over ssh.


  For those of you who have read this far (my hat's off to your 
stamina), thank you in advance for any suggestions or pointers you can 
provide.


Brian


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

[BackupPC-users] Re: (no subject)

2006-04-19 Thread David Fallin
FRED capitainealbator at yahoo.fr writes:

 1/ If I make an apt-get search backuppc, I only have
 the choice to install version 2.1.1-2 how could I
 install the last version 2.1.2 ? Do I need to modify
 my sources.list?
use apt-get to install the app and its dependencies, then pull the latest down
and update it (it should read your config settings). i think i've got a 2.1.2
package somewhere, email me off list if you still need it (dfallin at css1 net)
 
 2/ When I install backuppc, Installation runs well but
 if I do a dpkg-reconfigure backuppc, I've got this
 message:
 
 * Stopping backuppc...
 No process in pidfile
 `/var/lib/backuppc/log/BackupPC.pid' found running;
 none killed.
did you run 'sudo dpkg-reconfigure'? i've not used that but if all else fails,
just manually stop the service first (sudo /etc/init.d/backuppc stop), then run
the reconfigure
 



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Email Reminders for Retired Machine

2006-04-19 Thread Kristjan Onu
I have retired a machine and set $Conf{FullPeriod} = -2, but despite this, I
continue receiving no recent backups email reminders. Can these reminders be
disabled?

K



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Back Up a Single File Type

2006-04-19 Thread Mark Wass





 Hi
All

I'm using Rsync to backup my servers and was wondering how I would
specify backing up only zip files in my config.

For example here is my tree structure

/Folder1
|
-Files
-Temp
| |
| - File1.zip
| - File2.doc
| - File3.zip
| - File4.exe
|
-Hello

If my config file had a share name like this:

$Conf{RsyncShareName} = ['/Folder1/Temp'];

How do I only backup the zip files in this location?

Could I use this combination in the config?

'--exclude', '*.*',
'--include', '*.zip',

Reading this would say, exclude all files in the /Folder1/Temp folder and then include all zip files found in the /Folder1/Temp folder. Is this valid?

Thanks

Mark






Re: [BackupPC-users] Email Reminders for Retired Machine

2006-04-19 Thread Paul Fox
   I have retired a machine and set $Conf{FullPeriod} = -2, but despite this, 
   I
   continue receiving no recent backups email reminders. Can these 
   reminders be
   disabled?
  
  Set this also
  
  $Conf{EMailNotifyOldBackupDays} = 365.0;
  
  Thus it will only email once a year, you could probably use -1 to 
  disable completely.

i don't know about the -1, but setting to 365 will simply hold it off
for a year, then it will mail every day.  1 worked for me.  :-)
(actually, i just checked, and after a year i set it to 1500, so i'm
good for a few more.)

paul
=-
 paul fox, [EMAIL PROTECTED] (arlington, ma, where it's 64.8 degrees)


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Back Up a Single File Type

2006-04-19 Thread Les Stott




Mark Wass wrote:

  
  
  
   Hi
All
  
I'm using Rsync to backup my servers and was wondering how I would
specify backing up only zip files in my config.
  
For example here is my tree structure
  
/Folder1
|
-Files
-Temp
| |
| - File1.zip
| - File2.doc
| - File3.zip
| - File4.exe
|
-Hello
  
  If my config file had a share name like this:
  
$Conf{RsyncShareName} = ['/Folder1/Temp'];
  
How do I only backup the zip files in this location?
  
Could I use this combination in the config?
  
'--exclude', '*.*',
'--include', '*.zip',
  
Reading this would say, exclude all files in the /Folder1/Temp folder and then include all zip files found in the /Folder1/Temp folder. Is this valid?
  
  

You should only need to do something like this.

$Conf{BackupFilesOnly}
= [ '*.zip' ]; 


Try that.

Les






Re: [BackupPC-users] Email Reminders for Retired Machine

2006-04-19 Thread Les Stott

Paul Fox wrote:

   I have retired a machine and set $Conf{FullPeriod} = -2, but despite this, 
I
   continue receiving no recent backups email reminders. Can these 
reminders be
   disabled?
  
  Set this also
  
  $Conf{EMailNotifyOldBackupDays} = 365.0;
  
  Thus it will only email once a year, you could probably use -1 to 
  disable completely.


i don't know about the -1, but setting to 365 will simply hold it off
for a year, then it will mail every day.  1 worked for me.  :-)
(actually, i just checked, and after a year i set it to 1500, so i'm
good for a few more.)

  
After reading the config file it will send a backup email after 365 
days, then keep sending based on the following setting


#
# Minimum period between consecutive emails to a single user.
# This tries to keep annoying email to users to a reasonable
# level.  Email checks are done nightly, so this number is effectively
# rounded up (ie: 2.5 means a user will never receive email more
# than once every 3 days).
#
$Conf{EMailNotifyMinDays} = 2.5;

Thus every 3 days after the first year.

So i guess doing...

$Conf{EMailNotifyOldBackupDays} = 365.0;
$Conf{EMailNotifyMinDays} = 365;

should mean...

Only notify after 365 days if a backup has not been done,
then only send additional notifications every 365 days there after.

There's probably a cleaner way though.

Regards,

Les



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


RE: [BackupPC-users] Unexpected end of tar archive (SOLVED)

2006-04-19 Thread Justin Best
Hi all,

This is an update to a previous topic. I was having trouble using SMB to
back up locked files that were larger than 2GB. The backup would fail with
the message Unexpected end of tar archive, and there were all these weird
foreign characters in the backup log.

Craig kindly pointed out the coding changes that were necessary to fix the
bug in smbclient (which is a part of Samba). I've filed a bug with the Samba
guys (https://bugzilla.samba.org/show_bug.cgi?id=3592)

I have tested the solution and it does indeed work. Here is the patch
applied to clitar.c:

561c561
 static int padit(char *buf, int bufsize, int padsize)
---
 static int padit(char *buf, int bufsize, SMB_BIG_UINT padsize)


Second, if anyone wants the package for Debian Sarge that I compiled, it is
available here at present:
http://s35.yousendit.com/d.aspx?id=2UXCHHUN6A33E0KYUBIGELML0T
After this link expires, email me and I'll be happy to send it to you
directly.

If you do install this package, you'll want to set smbclient to hold so
that it doesn't get upgraded by accident in future:
# echo smbclient hold|dpkg --set-selections

Thanks, Craig, for your help in resolving this one, as well as for a great
piece of software. My backups are working perfectly now, and I don't need
ANY client-side software to make this happen!

Justin Best
503.906.7611 Voice
561.828.0496 Fax



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Multiple host/directory configuration question

2006-04-19 Thread jamsda
Hello,

I've got backuppc running successfully tunnelling ssh
with rsync; seem's to be an awsome application.

My question is if I have multiple hosts with various
different mount points, how do I specify them in
config.pl and hosts file? For example, target_host1
gets [/data, /home, /etc] backed up, and
target_host2 gets [/usr/local, /opt] backed up.

How do you specify this when there's only one instance
of $Conf{RsyncShareName} = [/data, /home, /etc];?

How would I do ie:
$Conf{RsyncShareName} = [/data, /home, /etc];
(target_host1)

and:
$Conf{RsyncShareName} = [/usr/local /opt];
(target_host2)

Is this possible?

Thanks,
Jim

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Re: Multiple host/directory configuration question

2006-04-19 Thread jamsda
Ok,

my config.pl/hosts (after install) were placed in the
conf/ dir.  The pc/target_host-x/ directories have all
the data I backed up in it. I didn't realize I could
copy the config.pl from the conf/ dir to each
pc/target_hostx/ directories and specify the options
for each host. Thanks, I'll try that.


Jim



--- jamsda [EMAIL PROTECTED] wrote:

 Hello,
 
 I've got backuppc running successfully tunnelling
 ssh
 with rsync; seem's to be an awsome application.
 
 My question is if I have multiple hosts with various
 different mount points, how do I specify them in
 config.pl and hosts file? For example,
 target_host1
 gets [/data, /home, /etc] backed up, and
 target_host2 gets [/usr/local, /opt] backed up.
 
 How do you specify this when there's only one
 instance
 of $Conf{RsyncShareName} = [/data, /home, /etc];?
 
 How would I do ie:
 $Conf{RsyncShareName} = [/data, /home, /etc];
 (target_host1)
 
 and:
 $Conf{RsyncShareName} = [/usr/local /opt];
 (target_host2)
 
 Is this possible?
 
 Thanks,
 Jim
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.com 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/