BackupPC-users

[BackupPC-users] rsync exclusion list - apply to multiple shares

2016-08-19 09:25:16
Subject: [BackupPC-users] rsync exclusion list - apply to multiple shares
From: cardiganimpatience <backuppc-forum AT backupcentral DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Fri, 19 Aug 2016 06:24:24 -0700
I was under the incorrect assumption that specifying an asterisk would apply 
the exclusion list to all ShareNames until I struggled with making it work and 
re-read the tutorial [1] where it specifies that the asterisk "means it applies 
to all shares that don't have a specific entry".

$Conf{BackupFilesExclude} = {
  '*' => [
    '*access_log*',
    '.apdisk',
    '*/.apdisk',
    '.cache'
  ]

Is there a method to make an exclusion list for all shares, even if individual 
shares have specific lists of their own? For example, I want to exclude the 
/var/lib/mysql folder on the /var share, but I also want to exclude any 
directory named .cache from all shares. 

Would it be valid to list all shares in a common definition, and also break 
them out into individual lists like this:

$Conf{BackupFilesExclude} = {
  '/home, /var, /usr, /boot, /data' => [
    '*access_log*',
    '.apdisk',
    '*/.apdisk',
    '.cache'
  ]

$Conf{BackupFilesExclude} = {
  '/var' => [
'/lib/mysql'
]


My list of files to exclude from every ShareName includes over 40 items so it's 
not trivial (or aesthetically pleasing) to append this list to each share 
definition.

[1] http://backuppc.sourceforge.net/faq/BackupPC.html#_conf_backupfilesexclude_

+----------------------------------------------------------------------
|This was sent by itismike AT gmail DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------



------------------------------------------------------------------------------
_______________________________________________
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>