BackupPC-users

[BackupPC-users] Excluding files from rsync

2013-06-20 18:01:45
Subject: [BackupPC-users] Excluding files from rsync
From: Bart Verwilst <lists AT verwilst DOT be>
To: backuppc-users AT lists.sourceforge DOT net
Date: Thu, 20 Jun 2013 23:42:37 +0200
Hi,

The IRC channel seems to be pretty much dead so I'm turning towards the 
mailinglist for some advice. :)

One of the subdirectories of the main directory that needs to be backed 
up hold hundreds of thousands of cached file that need no backup. I can 
exclude them from being backed up with BackupFilesExclude, but that 
doesn't stop rsync from iterating over it, adding hours to the backup 
time.

I then tried adding --exclude=/my/cache/dir as RsyncArgsExtra since the 
manual clearly states:

<snip>
Examples of additional arguments that should work are 
--exclude/--include, eg:

     $Conf{RsyncArgsExtra} = [
           '--exclude', '/proc',
           '--exclude', '*.tmp',
     ];
</snip>

However, no matter how I formulate my exclude, it never appears on the 
actual rsync commandline. Adding -v for example gets shown just fine.

In the end, I digged into the code and found the following snippet in 
/usr/share/BackupPC/lib/BackupPC/Xfer/Rsync.pm :

<snip>
eval {
             $argList = File::RsyncP->excludeStrip($argList);
         };
</snip>

--exclude seems to be stripped out in a hardcoded way. Then why does the 
manual tell me otherwise?

Is there any non-hackish way to stop rsync from traversing the whole 
cache subdirectory?

Thanks a lot in advance,

Kind regards,

Bart Verwilst

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

<Prev in Thread] Current Thread [Next in Thread>
  • [BackupPC-users] Excluding files from rsync, Bart Verwilst <=