On 28/09/18 08:22, Kris Lou via BackupPC-users wrote:
Hey guys,

This is driving me nuts.  I just installed a new instance of 4.2.1, and for whatever reason, I can't get the BackupFilesOnly/BackupFilesExclude to work correctly.  Need More Eyes!

$Conf{BackupFilesOnly} = {
  '*' => [
    '/SysData'
  ]
};
$Conf{RsyncShareName} = [
  '/sharedfolders'
];
$Conf{XferMethod} = 'rsync';
$Conf{DumpPostUserCmd} = undef;
$Conf{DumpPreUserCmd} = undef;
$Conf{RestorePostUserCmd} = undef;
$Conf{RestorePreUserCmd} = undef;
$Conf{XferLogLevel} = 3;
$Conf{BackupZeroFilesIsFatal} = '0';
$Conf{BackupFilesExclude} = {};
~

As seen above, I've got 1 client share defined (/sharedfolders), and I'm trying to get "/SysData" and its content.  BackupFilesExclude is currently blank. (BackupFilesExclude usually has stuff;  this is an override to clear it out).

From XferLog:

/usr/bin/rsync_bpc --bpc-top-dir /data/BackupPCPool 
--bpc-host-nameshares.axlmusiclink.biz <http://shares.axlmusiclink.biz>  
--bpc-share-name /sharedfolders --bpc-bkup-num 0 --bpc-bkup-comp 3 --bpc-bkup-prevnum 
-1 --bpc-bkup-prevcomp -1 --bpc-bkup-inode0 2 --bpc-attrib-new --bpc-log-level 3 -e 
/usr/bin/ssh\ -l\ root --rsync-path=/usr/bin/rsync --super --recursive --protect-args 
--numeric-ids --perms --owner --group -D --times --links --hard-links --delete 
--delete-excluded --one-file-system --partial --log-format=log:\ %o\ %i\ %B\ %8U,%8G\ 
%9l\ %f%L --stats --checksum --timeout=72000 --include=/SysData --exclude=/\* 
shares.axlmusiclink.biz:/sharedfolders/ /
So, I think that the "--exclude=/\*" is what's causing this to dump 0 files, but I have no idea where it came from.

If I change the share name to "/sharedfolders/SysData" and blank out the Only/Excludes, then it'll dump it correctly.  The rsync-bpc command then doesn't append the --include and --exclude strings.

So, what's wrong with my syntax?

Have you tried this instead:
$Conf{BackupFilesOnly} = {
  '*' => [
    '/SysData'
  ]
};
$Conf{RsyncShareName} = [
  '/sharedfolders'
];
$Conf{XferMethod} = 'rsync';
$Conf{DumpPostUserCmd} = undef;
$Conf{DumpPreUserCmd} = undef;
$Conf{RestorePostUserCmd} = undef;
$Conf{RestorePreUserCmd} = undef;
$Conf{XferLogLevel} = 3;
$Conf{BackupZeroFilesIsFatal} = '0';
*$Conf{BackupFilesExclude} = undef;
*
Regards,
Adam
**
--
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this e-mail by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. If you have received this message
in error, please notify us immediately. Please also destroy and delete the
message from your computer. Viruses - Any loss/damage incurred by receiving
this email is not the sender's responsibility.
--
Adam Goryachev Website Managers www.websitemanagers.com.au
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to