Re: [BackupPC-users] 4.2.1 Rsync and BackupFilesOnly

2018-09-27 Thread Kris Lou via BackupPC-users
 $Conf{XferLogLevel} = 3;
$Conf{BackupZeroFilesIsFatal} = '0';
*$Conf{BackupFilesExclude} = undef;*

I tried this, but the same results.

But I think Holger nailed it with the --one-file-system arg.  And you got
it ... backing up a NAS where each sharepoint is also a separate mountpoint.

Thanks,
-Kris


Kris Lou
k...@themusiclink.net

On Thu, Sep 27, 2018 at 4:33 PM, Holger Parplies  wrote:

> Hi,
>
> Kris Lou via BackupPC-users wrote on 2018-09-27 15:22:20 -0700
> [[BackupPC-users] 4.2.1 Rsync and BackupFilesOnly]:
> > [...]
> > Need More Eyes!
>
> 8-)
>
> > $Conf{BackupFilesOnly} = {
> >   '*' => [
> > '/SysData'
> >   ]
> > };
>
> This is translated by BackupPC to what you see below - --include=/SysData
> --exclude=/* -
> because rsync has no notion of "only". "Only" means "include /SysData but
> exclude everything
> else".
>
> > [...]
> > /usr/bin/rsync_bpc --bpc-top-dir /data/BackupPCPool --bpc-host-name
> > 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/ /
> >
> > [...]
> > If I change the share name to "/sharedfolders/SysData" and blank out the
> > Only/Excludes, then it'll dump it correctly.
>
> Let me guess. /sharedfolders/SysData is a mount point, right? You have
> --one-file-system
> in the rsync args, so starting from /sharedfolders, rsync won't recurse
> into a different
> file system. If you start at /sharedfolders/SysData, you're already on the
> target fs, so
> everything will work as expected. Try removing the --one-file-system.
>
> Regards,
> Holger
>
___
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/


Re: [BackupPC-users] 4.2.1 Rsync and BackupFilesOnly

2018-09-27 Thread Holger Parplies
Hi,

Kris Lou via BackupPC-users wrote on 2018-09-27 15:22:20 -0700 
[[BackupPC-users] 4.2.1 Rsync and BackupFilesOnly]:
> [...]
> Need More Eyes!

8-)

> $Conf{BackupFilesOnly} = {
>   '*' => [
> '/SysData'
>   ]
> };

This is translated by BackupPC to what you see below - --include=/SysData 
--exclude=/* -
because rsync has no notion of "only". "Only" means "include /SysData but 
exclude everything
else".

> [...]
> /usr/bin/rsync_bpc --bpc-top-dir /data/BackupPCPool --bpc-host-name
> 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/ /
> 
> [...]
> If I change the share name to "/sharedfolders/SysData" and blank out the
> Only/Excludes, then it'll dump it correctly.

Let me guess. /sharedfolders/SysData is a mount point, right? You have 
--one-file-system
in the rsync args, so starting from /sharedfolders, rsync won't recurse into a 
different
file system. If you start at /sharedfolders/SysData, you're already on the 
target fs, so
everything will work as expected. Try removing the --one-file-system.

Regards,
Holger


___
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/


Re: [BackupPC-users] 4.2.1 Rsync and BackupFilesOnly

2018-09-27 Thread Adam Goryachev

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


[BackupPC-users] 4.2.1 Rsync and BackupFilesOnly

2018-09-27 Thread Kris Lou via BackupPC-users
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-name
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?

Thanks,
-Kris



Kris Lou
k...@themusiclink.net
___
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/