BackupPC-users

Re: [BackupPC-users] Excludes only at a specific directory depth? (with tar as XferMethod and BackupPC 3.3.0)

2015-09-10 02:26:52
Subject: Re: [BackupPC-users] Excludes only at a specific directory depth? (with tar as XferMethod and BackupPC 3.3.0)
From: Wolfgang Karall <lists+backuppc-users AT karall-edv DOT at>
To: backuppc-users AT lists.sourceforge DOT net
Date: Thu, 10 Sep 2015 08:09:30 +0200
Hi Axel,

On 15-09-09 17:57:58, Axel Beckert wrote:
> $Conf{BackupFilesExclude} = {
>   '/Users/*/' => [
>       '/Pictures',
>       '/Movies',
>       '/Music',
>   ],
>   [...]
> };

BackupFilesExclude only understands one special key, '*', for all shares
not matched by any other key in the configuration.

Maybe you can adapt the $Conf{TarClientCmd} to have the exclude list
defined on the client, I use

$Conf{TarClientCmd} = '$sshPath -q -x -n -l root $host'
                    . ' env LC_ALL=C $tarPath -c -v -f - -C $shareName+'
                    . ' -X $shareName+/.backuppc.excludes'
                    . ' --totals';

for some hosts where there's the need for client-side exclude lists,
adding empty .backuppc.excludes files for shares without exclusions.

Cheers
Wolfgang

PS: I guess the mention in the GNU tar manual about * being greedy even
when encountering a / is "Periods (`.') or forward slashes (`/') are not
considered special for wildcard matches."

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
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>