I changed the exclude list to:

$Conf{BackupFilesExclude} = {
  '*' => [
    '/proc',
    '/sys',
    '/tmp',
    '/var/tmp',
    '/usr/tmp',
    '/mnt',
    '/media',
    '/auto',
    '/var/run/acpid.socket',
    '/var/run/dbus/system_bus_socket',
    '/var/lib/backuppc/cpool',
    '/var/lib/backuppc/pc',
    '/var/lib/backuppc/pool',
    '/var/lib/backuppc/trash',
#    '/var/lib/vmware/Virtual Machines/*/*.vmdk',
#    '/var/lib/vmware/Virtual Machines/*/*.vmem',
#    '/var/lib/vmware/Virtual Machines/*/*.vmsd',
#    '/var/lib/vmware/Virtual Machines/*/*.vmsn',
#    '/var/lib/vmware/Virtual Machines/*/*.vmss',
    '/backupdata'
  ]
};

And the rsync command to:

$Conf{RsyncClientCmd} = '$sshPath -q -x -l netbackup $host /usr/bin/sudo 
$rsyncPath $argList+';

and ran the backup again.  It did not work, sadly.  Output:

-------------------------------------------------------------

Running: /usr/bin/ssh -q -x -l netbackup freedom.rapidxdev.com 
/usr/bin/sudo /usr/bin/rsync --server --sender --numeric-ids --perms 
--owner --group --links --times --block-size=2048 --recursive -D 
--bwlimit=200 --ignore-times . /
Xfer PIDs are now 13052
xferPids 13052
Got remote protocol 29
Negotiated protocol version 26
Remote[2]: file has vanished: "/proc/2/exe"
Remote[2]: file has vanished: "/proc/2/task/2/exe"
Remote[2]: file has vanished: "/proc/3/exe"
Remote[2]: file has vanished: "/proc/3/task/3/exe"
Remote[2]: file has vanished: "/proc/4/exe"
Remote[2]: file has vanished: "/proc/4/task/4/exe"
Remote[2]: file has vanished: "/proc/5/exe"
Remote[2]: file has vanished: "/proc/5/task/5/exe"
Remote[2]: file has vanished: "/proc/6/exe"
Remote[2]: file has vanished: "/proc/6/task/6/exe"
Remote[2]: file has vanished: "/proc/7/exe"
Remote[2]: file has vanished: "/proc/7/task/7/exe"
Remote[2]: file has vanished: "/proc/11/exe"
Remote[2]: file has vanished: "/proc/11/task/11/exe"
Remote[2]: file has vanished: "/proc/14/exe"
Remote[2]: file has vanished: "/proc/14/task/14/exe"
Remote[2]: file has vanished: "/proc/16/exe"
Remote[2]: file has vanished: "/proc/16/task/16/exe"
Remote[2]: file has vanished: "/proc/92/exe"
Remote[2]: file has vanished: "/proc/92/task/92/exe"
Remote[2]: file has vanished: "/proc/93/exe"
Remote[2]: file has vanished: "/proc/93/task/93/exe"
Remote[2]: file has vanished: "/proc/94/exe"
Remote[2]: file has vanished: "/proc/94/task/94/exe"
Remote[2]: file has vanished: "/proc/95/exe"
Remote[2]: file has vanished: "/proc/95/task/95/exe"
Remote[2]: file has vanished: "/proc/601/exe"
Remote[2]: file has vanished: "/proc/601/task/601/exe"
Remote[2]: file has vanished: "/proc/602/exe"
Remote[2]: file has vanished: "/proc/602/task/602/exe"
Remote[2]: file has vanished: "/proc/746/exe"
Remote[2]: file has vanished: "/proc/746/task/746/exe"
Remote[2]: file has vanished: "/proc/747/exe"
Remote[2]: file has vanished: "/proc/747/task/747/exe"
Remote[2]: file has vanished: "/proc/748/exe"
Remote[2]: file has vanished: "/proc/748/task/748/exe"
Remote[2]: file has vanished: "/proc/749/exe"
Remote[2]: file has vanished: "/proc/749/task/749/exe"
Remote[2]: file has vanished: "/proc/750/exe"
Remote[2]: file has vanished: "/proc/750/task/750/exe"
Remote[2]: file has vanished: "/proc/751/exe"
Remote[2]: file has vanished: "/proc/751/task/751/exe"
Remote[2]: file has vanished: "/proc/995/exe"
Remote[2]: file has vanished: "/proc/995/task/995/exe"
Remote[2]: file has vanished: "/proc/999/exe"
Remote[2]: file has vanished: "/proc/999/task/999/exe"
Remote[2]: file has vanished: "/proc/1003/exe"
Remote[2]: file has vanished: "/proc/1003/task/1003/exe"
Remote[2]: file has vanished: "/proc/1032/exe"
Remote[2]: file has vanished: "/proc/1032/task/1032/exe"
Remote[2]: file has vanished: "/proc/1092/exe"
Remote[2]: file has vanished: "/proc/1092/task/1092/exe"
Remote[2]: file has vanished: "/proc/1673/exe"
Remote[2]: file has vanished: "/proc/1673/task/1673/exe"
Remote[2]: file has vanished: "/proc/1934/exe"
Remote[2]: file has vanished: "/proc/1934/task/1934/exe"
Remote[2]: file has vanished: "/proc/2819/exe"
Remote[2]: file has vanished: "/proc/2819/task/2819/exe"
Xfer PIDs are now 13052,13055
xferPids 13052,13055
  create d 755       0/0        4096 .
  create d 755       0/0        4096 .vmware
  create d 755       0/0        4096 backupdata
  same     644       0/0        1853 backupdata/backups
  create d 755       0/0        4096 backupdata/cache
  create d 755       0/0        4096 backupdata/cache/apt
  create d 755       0/0       24576 backupdata/cache/apt/archives
  same     444       0/0      179206 
backupdata/cache/apt/archives/adduser_3.102                                     
                                                       
_all.deb
  create   444       0/0      197976 
backupdata/cache/apt/archives/apt-utils_0.6                                     
                                                       
.46.4-0.1_amd64.deb
Parent read EOF from child: fatal error!
Done: 0 files, 0 bytes
Got fatal error during xfer (Child exited prematurely)
Backup aborted by user signal
dump failed: Child exited prematurely
link freedom.rapidxdev.com

-----------------------------------------

We use the sudo method for backups on other networks and have not had an 
issues, though I'm not sure if we've got any excludes with 
metacharacters on any of those.  Probably, we don't. 


Craig Barratt wrote:
> Steven writes:
>
>   
>> We are running backuppc 2.1.2 on a debian 4 host, backing up other
>> debian hosts.  Rsync version is 2.6.9  protocol version 29 on server and
>> clients.
>>
>> I've set up backuppc on other systems and never run into this issue, but
>> whenever we run backups the $Conf{BackupFilesExclude} setting is
>> completely ignored and everything is backed up.  Here's out backuppc config:
>>     
>
> I'm a little suspicious of whether the sudo will cause a problem
> with shell-meta characters - I'm not sure if an extra shell is
> run by ssh in this case.
>
> Try this:
>
>  - Try removing the '/var/lib/vmware/Virtual Machines...' excludes (the
>    ones with meta characters)
>
>  - Try replacing sudo with a full path:
>
>     $Conf{RsyncClientCmd} = '$sshPath -q -x -l netbackup $host sudo...';
>
> In each case, you can run the backup manually with the -v flag to
> see what rsync command is run, and then hit ^C to abort after you
> see whether the excludes are working or not.  Please post the rsync
> command and whether it worked or not.
>
> Craig
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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/

Reply via email to