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'
]
};
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.