BackupPC-users

[BackupPC-users] Rsync method with $Conf{RsyncShareName} and $Conf{BackupFilesExclude} causes hangups?

2012-01-02 08:16:06
Subject: [BackupPC-users] Rsync method with $Conf{RsyncShareName} and $Conf{BackupFilesExclude} causes hangups?
From: Johan Wilfer <lists AT jttech DOT se>
To: BackupPC-users AT lists.sourceforge DOT net
Date: Mon, 02 Jan 2012 13:50:15 +0100
Hello,
I try to backup a OpenVZ host with backupPC. For some other servers I've
a working rsync configuration that backups the whole file system. But
with this server I would like to backup the shares separately (because
of the many mounts that OpenVZ have for different /proc /sys and so on..).

When I use the BackupFilesExclude-option I notice that the remote
rsync-server sometimes "goes away". There are no running rsync-server on
the server and backuppc only displays one XFer PID on the status page.
That PID is the local one, no remote. Then I have to select
"Stop/Dequeue Backup" and then the backup continues on the next share.
If I run a full backup again it may succeed, or fail on another share.

The config for this host:
----
$Conf{XferMethod} = 'rsync';
$Conf{RsyncShareName} = [
  '/',
  '/boot',
  '/mnt/backup',
  '/var/lib/vz',
  '/mnt/pbxdata'
];

$Conf{BackupFilesExclude} = {
  '/mnt/pbxdata' => [
    '/pbx_test/recordings', '/pbx_test/recordings2', '/heartofgold'
  ]
};

$Conf{RsyncArgs} = [
  '--numeric-ids',
  '--perms',
  '--owner',
  '--group',
  '-D',
  '--links',
  '--hard-links',
  '--times',
  '--block-size=2048',
  '--recursive',
  '--checksum-seed=32761',
  '--one-file-system',
];

----
This is an excerpt of the log where the backup got stalled on share
/var/lib/vz (hostname edited):

full backup started for directory /mnt/backup (baseline backup #8)
Running: /usr/bin/ssh -q -x -l root -p 1022 hostname.example.com /usr/bin/rsync 
--server --sender --numeric-ids --perms --owner --group -D --links --hard-links 
--times --block-size=2048 --recursive --checksum-seed=32761 --one-file-system 
--ignore-times . /mnt/backup/
Xfer PIDs are now 6336
Got remote protocol 30
Negotiated protocol version 28
Checksum caching enabled (checksumSeed = 32761)
Xfer PIDs are now 6336,6337
  create d 755       0/0        4096 .
  create   644       0/0           0 empty-file
  create d 700       0/0       16384 lost+found
Done: 1 files, 0 bytes
full backup started for directory /var/lib/vz (baseline backup #8)
Running: /usr/bin/ssh -q -x -l root -p 1022 hostname.example.com /usr/bin/rsync 
--server --sender --numeric-ids --perms --owner --group -D --links --hard-links 
--times --block-size=2048 --recursive --checksum-seed=32761 --one-file-system 
--ignore-times . /var/lib/vz/
Xfer PIDs are now 6338
Done: 0 files, 0 bytes
full backup started for directory /mnt/pbxdata (baseline backup #8)
Running: /usr/bin/ssh -q -x -l root -p 1022 hostname.example.com /usr/bin/rsync 
--server --sender --numeric-ids --perms --owner --group -D --links --hard-links 
--times --block-size=2048 --recursive --checksum-seed=32761 --one-file-system 
--ignore-times . /mnt/pbxdata/
Xfer PIDs are now 6403
Got remote protocol 30
Negotiated protocol version 28
Checksum caching enabled (checksumSeed = 32761)
Sent exclude: /pbx_test/recordings
Sent exclude: /pbx_test/recordings2
Sent exclude: /heartofgold
Xfer PIDs are now 6403,6405
  create d 755       0/0        4096 .
  create   644       0/0           0 empty-file
  create d 755       0/0        4096 pbx_test
  create   644       0/0           0 pbx_test/TEST3
  same     644       0/0           5 pbx_test/should-be-transfered.txt
Done: 3 files, 5 bytes
Got fatal error during xfer (No files dumped for share /var/lib/vz)
Backup aborted by user signal
Saving this as a partial backup, replacing the prior one (got 41684 and 3 files 
versus 0)


Does anyone have a solution for this?

Thanks!

/Johan

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/