From: Juergen K. <j.k...@eu...> - 2004-12-01 08:25:07
|
On Tue, Nov 30, 2004 at 09:04:51PM -0800, Craig Barratt wrote: > Michael Keightley writes: > > > I can't get BackupFilesExclude to work [..] Regarding BackupFilesExclude: when using the rsync method and working with RsyncShareName and BackupFilesExclude, the files/dirs you want to exclude have to be stated relatively, not with absolute path. I.e. if you have $Conf{RsyncShareName} = [ '/var/log' ]; and want to exclude the directory /var/log/cron.old, this works only with $Conf{BackupFilesExclude} = ['/cron.old']; The documentation would send you to say '/var/log/cron.old' there. If you use $Conf{BackupFilesOnly} I'd guess the docs are correct (have not tested that, but remembering the source there is a lot of fiddling with pathnames in that case and none otherwise). Also this raises a problem if you have '/foo' and '/bar' as shares, and want to exclude '/foo/bar', but include '/bar/bar'... OK, you can go around that by using BackupFilesOnly or creating two hosts for one machine but... So, if nothing works you could try giving relative paths, just in case it is the same when using smb. Would be a good idea to make BackupFilesExclude always work with absolute pathnames - that would solve that and make it consistent with the documentation. Regards, Juergen Kammer. |