BackupPC-users

Re: [BackupPC-users] BackupPC Excludes - How To

2017-06-19 13:00:19
Subject: Re: [BackupPC-users] BackupPC Excludes - How To
From: Akibu Flash <akibuflash AT outlook DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>, "mstowe AT chicago.us.mensa DOT org" <mstowe AT chicago.us.mensa DOT org>
Date: Mon, 19 Jun 2017 16:59:40 +0000

I "think" I understand... Thanks @mstowe AT chicago.us.mensa DOT org.  So my share name i.e. $Conf{RsyncShareName} would be /cygdrive/j/ (which basically would backup everything on my j drive). 


And to exclude files from that backup, I would put the following in the cgi interface for $Conf{BackupFilesExclude}  /useless_folder_1; and /useless_folder_2, which would generate in the config.pl file, what you typed.


$Conf{BackupFilesExclude} = {
'/cygdrive/j/' => [
  'useless_folder_1',
  'useless_folder_2'
 ]
};



From: Michael Stowe <mstowe AT chicago.us.mensa DOT org>
Sent: Monday, June 19, 2017 9:26:33 AM
To: General list for user discussion, questions and support
Subject: Re: [BackupPC-users] BackupPC Excludes - How To
 

On 2017-06-19 10:28, Akibu Flash wrote:

@Craig Barratt See below. Essentially, I am trying to avoid having to list multiple shares to backup for $Conf{RsyncShareName} and to just list one and then use $Conf{BackupFilesExclude} to exclude a few folders from that one share. Thanks.

$Conf{XferMethod} = rsync

$Conf{RsyncShareName} = /cygdrive/j/* #please note this is the nature of my question. Currently I have multiple shares listed for $Conf{RsyncShareName} (e.g. /cygdrive/j/Documents, /cygdrive/j/Photos, etc.) But want to pare that down to just one i.e. $Conf{RsyncShareName} = /cygdrive/j/* and to use the Excludes function to exclude the files I don't want backed up.

Because your transfer method is rsync, your share names have to match what rsync is using (i.e., “module name” in rsync parlance.) /cygdrive/j/ could be a valid share name, but /cygdrive/j/* probably isn't.

You'll need to start by getting this right.

$Conf{BackupFilesOnly} = blank

$Conf{BackupFilesExclude} = /cygdrive/j/useless_folder_1; /cygdrive/j/useless_folder_2; /cygdrive/j/useless_folder_3

Let's assume that your share name is ‘/cygdrive/j/’. This would look like this:

$Conf{BackupFilesExclude} = {

'/cygdrive/j/' => [
  'useless_folder_1',
  'useless_folder_2'
 ]

};

I note that this MUST match your share, OR, a ‘*’ may be used here, to match all shares.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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/

ADSM.ORG Privacy and Data Security by KimLaw, PLLC