BackupPC-users

Re: [BackupPC-users] rsync exclude syntax

2009-01-15 18:25:00
Subject: Re: [BackupPC-users] rsync exclude syntax
From: Holger Parplies <wbppc AT parplies DOT de>
To: Jean-Michel Beuken <jean-michel.beuken AT uclouvain DOT be>
Date: Fri, 16 Jan 2009 00:23:13 +0100
Hi,

Jean-Michel Beuken hijacked a thread and wrote on 2009-01-15 13:56:19 +0100 
[[BackupPC-users] rsync exclude syntax]:
> [...]
> here is the used setting  :
> 
> $Conf{BackupFilesExclude} = [ 
> '/Users/garant/Library/Preferences/ByHost/*00224126372e.plist' ];
> 
> notice the  wildcard '*' in the file list...
> 
> but it seems that BackupPC_dump  stats the file  BEFORE to exclude the 
> file from backup because there is a "failed to open" message...

no, the messages indicate that it was trying to *open* the files (and you
*can* stat() a file you do not have permission to open).

The reason is this:

> ---------------- log -----------------
> incr backup started back to 2009-01-12 10:05:19 (backup #30) for 
> directory /Users/garant
> Running: /usr/bin/ssh -q -x -l garant 130.104.58.195 /usr/bin/rsync 
> --server --sender --numeric-ids --perms --owner --group --devices 
> --links --times --block-size=2048 --recursive . /Users/garant/

You are using the "share" name "/Users/garant", and your exclude needs to be
relative to the transfer root. You need to use either of:

        $Conf {BackupFilesExclude} =
                [ '/Library/Preferences/ByHost/*00224126372e.plist' ];

        $Conf {BackupFilesExclude} = {
                '/Users/garant' =>
                          [ '/Library/Preferences/ByHost/*00224126372e.plist' ]
        };

where the second version will limit the exclude to the one share, while it
will apply to all shares in the first version. That is probably the same thing
in your case. The second version is probably more readable, because you can
more easily see the full path you are excluding.

Regards,
Holger

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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>