On 22 Jul 2008 at 15:39, Frédéric Massot wrote: I don't believe that the exclude parameter works with rsync. Or at least that is what I ran into and what I believe that the documentation says.
I basically had to include multiple directories in such a manner as to not include what I wanted to exclude. The ability to use exclude in some manner would certainly be welcome. > Hi, > > I would like to save all the data on a linux server with rsync+ssh+sudo, > I have a problem with the BackupFilesExclude parameter. > > I do my tests on the tree "/usr/local" before "/", I'm trying to save > all "/usr/local" except the directory "/usr/local/bin". > > I change the configuration with the web interface. I use BackupPC > 3.1.0-3 (Debian/Lenny). > > > 1) With this configuration: > $Conf{ClientCharset} = 'iso-8859-15'; > $Conf{RsyncClientCmd} = '$sshPath -q -x -l backuppc > host1.juliana-multimedia.com sudo $rsyncPath $argList+'; > $Conf{XferMethod} = 'rsync'; > $Conf{RsyncShareName} = [ > '/usr/local' > ]; > $Conf{BackupFilesExclude} = { > '/usr/local' => [ > '/bin', > '' > ] > }; > > There is this line in the file auth.log: > sudo: backuppc : TTY=unknown ; PWD=/var/lib/backuppc ; USER=root ; > COMMAND=/usr/bin/rsync --server --sender --numeric-ids --perms --owner > --group -D --links --hard-links --times --block-size=2048 --recursive > --exclude= --ignore-times . /usr/local/ > > > 2) With this configuration: > $Conf{ClientCharset} = 'iso-8859-15'; > $Conf{RsyncClientCmd} = '$sshPath -q -x -l backuppc > host1.juliana-multimedia.com sudo $rsyncPath $argList+'; > $Conf{XferMethod} = 'rsync'; > $Conf{RsyncShareName} = [ > '/usr/local' > ]; > $Conf{BackupFilesExclude} = { > '/usr/local' => [ > 'bin', > '' > ] > }; > > There is this line in the file auth.log: > sudo: backuppc : TTY=unknown ; PWD=/var/lib/backuppc ; USER=root ; > COMMAND=/usr/bin/rsync --server --sender --numeric-ids --perms --owner > --group -D --links --hard-links --times --block-size=2048 --recursive > --exclude= --ignore-times . /usr/local/ > > > 3) With this configuration: > $Conf{ClientCharset} = 'iso-8859-15'; > $Conf{RsyncClientCmd} = '$sshPath -q -x -l backuppc > host1.juliana-multimedia.com sudo $rsyncPath $argList+'; > $Conf{XferMethod} = 'rsync'; > $Conf{RsyncShareName} = [ > '/usr/local' > ]; > $Conf{BackupFilesExclude} = { > '/usr/local' => [ > '/bin' > ] > }; > > There is this line in the file auth.log: > sudo: backuppc : TTY=unknown ; PWD=/var/lib/backuppc ; USER=root ; > COMMAND=/usr/bin/rsync --server --sender --numeric-ids --perms --owner > --group -D --links --hard-links --times --block-size=2048 --recursive > --ignore-times . /usr/local/ > > > 4) With this configuration: > $Conf{ClientCharset} = 'iso-8859-15'; > $Conf{RsyncClientCmd} = '$sshPath -q -x -l backuppc > host1.juliana-multimedia.com sudo $rsyncPath $argList+'; > $Conf{XferMethod} = 'rsync'; > $Conf{RsyncShareName} = [ > '/usr/local' > ]; > $Conf{BackupFilesExclude} = { > '/usr/local' => [ > 'bin' > ] > }; > > There is this line in the file auth.log: > sudo: backuppc : TTY=unknown ; PWD=/var/lib/backuppc ; USER=root ; > COMMAND=/usr/bin/rsync --server --sender --numeric-ids --perms --owner > --group -D --links --hard-links --times --block-size=2048 --recursive > --ignore-times . /usr/local/ > > > 5) With this configuration: > $Conf{ClientCharset} = 'iso-8859-15'; > $Conf{RsyncClientCmd} = '$sshPath -q -x -l backuppc > host1.juliana-multimedia.com sudo $rsyncPath $argList+'; > $Conf{XferMethod} = 'rsync'; > $Conf{RsyncShareName} = [ > '/usr/local' > ]; > $Conf{BackupFilesExclude} = { > '/bin' => [ > '' > ] > }; > > There is this line in the file auth.log: > sudo: backuppc : TTY=unknown ; PWD=/var/lib/backuppc ; USER=root ; > COMMAND=/usr/bin/rsync --server --sender --numeric-ids --perms --owner > --group -D --links --hard-links --times --block-size=2048 --recursive > --ignore-times . /usr/local/ > > > 6) With this configuration: > $Conf{ClientCharset} = 'iso-8859-15'; > $Conf{RsyncClientCmd} = '$sshPath -q -x -l backuppc > host1.juliana-multimedia.com sudo $rsyncPath $argList+'; > $Conf{XferMethod} = 'rsync'; > $Conf{RsyncShareName} = [ > '/usr/local' > ]; > $Conf{BackupFilesExclude} = [ '/bin' ]; > > There is this line in the file auth.log: > sudo: backuppc : TTY=unknown ; PWD=/var/lib/backuppc ; USER=root ; > COMMAND=/usr/bin/rsync --server --sender --numeric-ids --perms --owner > --group -D --links --hard-links --times --block-size=2048 --recursive > --ignore-times . /usr/local/ > > > > The directory "/usr/local/bin" are never excluded. :o( > > I'm trying all possibilities without success to exclude a directory. Can > you help me please? > > Regards. > -- > ============================================== > | FRÉDÉRIC MASSOT | > | http://www.juliana-multimedia.com | > | mailto:[EMAIL PROTECTED] | > ===========================Debian=GNU/Linux=== > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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/ -- Ray Todd Stevens Specialists in Network and Security Consulting Senior Consultant Stevens Services [EMAIL PROTECTED] Suite 21 (812) 279-9394 3754 Old State Rd 37 N Bedford, IN 47421 Thought for the day: Communist (n): one who has given up all hope of becoming a Capitalist. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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/