Hi,
I previously used the BackupFilesExclude option set on some hosts to
exclude a temporary directory from one of my modules:
$Conf{BackupFilesExclude} = {
'home' => ['/tmp'],
};
This worked fine, resulting in this in the XferLOG file:
Connected to module home
Sending args: --server --sender --numeric-ids --perms --owner --group
-D --links --hard-links --times --block-size=2048 --recursive
--checksum-seed=32761 . .
Checksum caching enabled (checksumSeed = 32761)
Sent exclude: /tmp
Xfer PIDs are now 9980
Now I have modified my main config.pl file to use cvs-exclude as well:
$Conf{RsyncArgs} = [
#
# Do not edit these!
#
'--numeric-ids',
'--perms',
'--owner',
'--group',
'-D',
'--links',
'--hard-links',
'--times',
'--block-size=2048',
'--recursive',
#
# Rsync >= 2.6.3 supports the --checksum-seed option
# which allows rsync checksum caching on the server.
# Uncomment this to enable rsync checksum caching if
# you have a recent client rsync version and you want
# to enable checksum caching.
#
'--checksum-seed=32761',
#
# Add additional arguments here
#
# Exclude all CVS/svn type stuff
'--cvs-exclude',
];
This works fine for other modules that don't have a BackupFilesExclude
option set for them:
Connected to module etc
Sending args: --server --sender --numeric-ids --perms --owner --group
-D --links --hard-links --times --block-size=2048 --recursive
--checksum-seed=32761 --cvs-exclude . .
Checksum caching enabled (checksumSeed = 32761)
Xfer PIDs are now 8733
But for the modules with the BackupFilesExclude option set I now find
that the backup ignores the BackupFilesExclude option and instead
translates the --cvs-exclude option into something else:
Connected to module home
Sending args: --server --sender --numeric-ids --perms --owner --group
-D --links --hard-links --times --block-size=2048 --recursive
--checksum-seed=32761 . .
Checksum caching enabled (checksumSeed = 32761)
Sent exclude: RCS
Sent exclude: SCCS
Sent exclude: CVS
Sent exclude: CVS.adm
Sent exclude: RCSLOG
Sent exclude: cvslog.*
Sent exclude: tags
Sent exclude: TAGS
Sent exclude: .make.state
Sent exclude: .nse_depinfo
Sent exclude: *~
Sent exclude: #*
Sent exclude: .#*
Sent exclude: ,*
Sent exclude: _$*
Sent exclude: *$
Sent exclude: *.old
Sent exclude: *.bak
Sent exclude: *.BAK
Sent exclude: *.orig
Sent exclude: *.rej
Sent exclude: .del-*
Sent exclude: *.a
Sent exclude: *.olb
Sent exclude: *.o
Sent exclude: *.obj
Sent exclude: *.so
Sent exclude: *.exe
Sent exclude: *.Z
Sent exclude: *.elc
Sent exclude: *.ln
Sent exclude: core
Sent exclude: .svn
Xfer PIDs are now 8736
Which results in the 'tmp' directory being backed up. This is all with
3.0.0 (technically 3.0.0-2 on Debian). Am I doing something wrong? How
can I achieve what I want, that is excluding all CVS/svn stuff and
another directory as well?
Thanks,
Cameron
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
BackupPC-users mailing list
[email protected]
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/