daniel berteaud wrote:
Le Wed, 20 Sep 2006 11:23:41 -0400,
Toby Johnson <[EMAIL PROTECTED]> a écrit :

  
You should try this:

$Conf{RsyncClientCmd} = '$sshPath -q -C -x -l root
-i /path/to/keyfile $host $rsyncPath $argList+'; 
$Conf{RsyncShareName} = ['/etc', '/var', '/home', '/root', '/usr',
'/lib', '/lib64', '/bin', '/sbin'];

$Conf{BackupFilesEsclude} = {'/var' =>
['/named/chroot/dev','/named/chroot/etc','/named/chroot/proc','/log',]};

It should works then.
    
      
That still doesn't work. Perhaps I should just hardcode --exclude 
statements into the RsyncClientCmd?
    

Well, sorry it's

$Conf{BackupFilesEsclude} = {'/var' => ['named/chroot/dev','named/chroot/etc','named/chroot/proc','log',]};

without the fisrt slash. I usually backup from the root ($Conf{RsyncShareName} = ['/'];)
so I can exclude with absolute paths. but when you exclude from another directory 
you must use relative paths
  

Thanks, that did the trick! The documentation made it seem as though the { share } => [files] syntax was for SMB only so I hadn't tried that at all.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to