Akibu,
The convention is to not use the trailing "/" on rsync share names. Unlike
most linux utilities, in certain cases rsync will behave differently
whether or not there is a trailing "/" on a directory name.
So you probably want do this:
$Conf{RsyncShareName} = "/cygdrive/j";
$Conf{BackupFilesExclude} = {
'/cygdrive/j' => [
'/useless_folder_1',
'/useless_folder_2'
]
};
Also, if the list of directories to include is shorter than the list to
exclude, you might be better off using $Conf{BackupFilesOnly} to list the
directories you want. That way if you make a mistake, it's likely the
backup is smaller (or empty), which makes debugging and iterating easier.
Craig
On Mon, Jun 19, 2017 at 9:59 AM, Akibu Flash <[email protected]> wrote:
> I "think" I understand... Thanks @[email protected]
> <[email protected]>. 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 <[email protected]>
> *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
> [email protected]
> List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki: http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
>
------------------------------------------------------------------------------
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
[email protected]
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/