BackupPC-users

[BackupPC-users] Backing up localhost nfs share with rsync

2011-07-21 07:57:52
Subject: [BackupPC-users] Backing up localhost nfs share with rsync
From: Ghislain <gadnet AT aqueos DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Thu, 21 Jul 2011 13:38:22 +0200
hi,

  I know this subject is sometime talked about but searching the list do not helped, a lot of testing neither so i try here in the hope someone will be able to help me.

  I try to backup a nfs mount share, for that i mount it on the backuppc server so i can backup it without using a silly

backuppc -- ssh --> server web => nfs => server web ----ssh --> backuppc

   loop and clog the network for nothing


   So i used this:



----------------------------------------backupserver.mydomain.com.pl--------------------------------------------
# include default config
do '/etc/backuppc/config.pl';
#
# Path to rsync executable on the client
#
$Conf{RsyncClientPath} = '/usr/bin/sudo -n /usr/bin/rsync';

$Conf{XferMethod}       = 'rsync';
$Conf{RsyncShareName}   = ['/'];


# rsync client commands
$Conf{RsyncClientCmd}           = '$rsyncPath $argList+';
$Conf{RsyncClientRestoreCmd}    = '$rsyncPath $argList+';


# repertoires a backuper
$Conf{BackupFilesOnly}    = {
        '/'  =>  [ '/etc','/var/www' ],
};

# repertoire a exclure
$Conf{BackupFilesExclude} = {
        '/'     =>      [ '**/archive/**' ],
};
-------------------------------------------------------------------------------



  have the error  "Fatal error (bad version): Exec failed for /usr/bin/sudo -n /usr/bin/rsync..." :

(root)> sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -v -f backupserver.mydomain.com

...snip....

full backup started for directory / (baseline backup #8)
started full dump, share=/
Running: /usr/bin/sudo\ -n\ /usr/bin/rsync --server --sender --numeric-ids --perms --owner --group -D --links --hard-links --times --recursive --checksum-seed=32761 --protocol=28 --ignore-times . /
Xfer PIDs are now 16249
xferPids 16249
Got remote protocol 1667594309

Fatal error (bad version): Exec failed for /usr/bin/sudo -n /usr/bin/rsync --server --sender --numeric-ids --perms --owner --group -D --links --hard-links --times --recursive --checksum-seed=32761 --protocol=28 --ignore-times . /




 i  have my sudoers to:

# Cmnd alias specification
Cmnd_Alias      BACKUPLOCAL  =               /usr/bin/rsync,\
                                             /bin/false

# User privilege specification
backuppc    ALL = (root)        NOPASSWD:       BACKUPLOCAL


   the proces of backuppc works on the right user:

backuppc 13791  0.0  0.0  63452 13432 ?        S    09:25   0:01 /usr/bin/perl /usr/share/backuppc/bin/BackupPC -d
backuppc 13793  0.0  0.0  43948  7020 ?        S    09:25   0:00 /usr/bin/perl /usr/share/backuppc/bin/BackupPC_trashClean



  and command line works well:

(root)>  sudo -u backuppc /usr/bin/sudo   /usr/bin/rsync --version
rsync  version 3.0.7  protocol version 30
Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
....snip....




  i have tested quite a lot of configuration but i really do not find where the problem is. I tried to add --protocol=28/29 to rsync but no change to the result so far. Any ideas on how to debug this ?


best regards,
Ghis
------------------------------------------------------------------------------
5 Ways to Improve & Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
_______________________________________________
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/
<Prev in Thread] Current Thread [Next in Thread>