Frédéric Massot wrote: > Nils Breunese (Lemonbit) a écrit : >> Ray Todd Stevens wrote: >> >>> 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. >> >> Excluding directories with rsync works just fine. Try this: >> >> $Conf{RsyncShareName} = [ '/usr/local' ]; >> $Conf{BackupFilesExclude} = [ '/usr/local/bin' ]; > > 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/ > > The parameter exclude is not in the command line of rsync.
- Why do you hardcode the hostname in RsyncClientCmd instead of using the $host variable? The default is '$sshPath -q -x -l root $host $rsyncPath $argList+'. With sudo it would become '$sshPath -q -x -l backuppc $host /usr/bin/sudo $rsyncPath $argList+'. - I only have --ignore-times in RsyncRestoreArgs, not in RsyncArgs. I don't know why the exclude doesn't seem to show up. Did you modify any other configuration settings? Is /usr/local/bin actually being backed up? Nils Breunese. ------------------------------------------------------------------------- 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/