SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Exclusion not working with rsync
Author Message
Post Exclusion not working with rsync 
Hi,

Mark Maciolek wrote on 2011-10-27 07:54:26 -0400 [Re: [BackupPC-users] Exclusion not working with rsync]:
On 10/26/2011 8:49 PM, Steve M. Robbins wrote:
I'm backing up my local machine using rsync; see configuration below.
Despite the exclusion, I still get /home/steve/Packages in my backup.
[...]
$Conf{RsyncShareName} = [
'/etc',
'/boot',
'/home',
'/var/mail',
'/var/www',
'/sound+vision'
];

$Conf{BackupFilesExclude} = {
'/home' => [
'/home/steve/Packages'
]
};
[...]

Steve,

You need to change the key /home should be *

$Conf{BackupFilesExclude} = {
'*' => ['
'/home/steve/Packages
]
};

that is plain wrong. This would, in effect, exclude

/etc/home/steve/Packages
/boot/home/steve/Packages
/home/home/steve/Packages
/var/mail/home/steve/Packages
/var/www/home/steve/Packages
/sound+vision/home/steve/Packages

which does not get you much further than the original exclusion of

/home/home/steve/Packages

Steve M. Robbins wrote on 2011-10-27 22:11:34 -0500 [Re: [BackupPC-users] Exclusion not working with rsync]:
[...]
Well, experimentation indicates that I need to strip off
the prefix;

Right. Documentation also indicates that (rsync(1), probably also mentioned in
the BackupPC docs - if you think about the examples in config.pl, they at
least hint at this).

i.e. change [...] to

$Conf{BackupFilesExclude} = {
'/home' => [
'steve/Packages'
]
};

Actually, it's

$Conf {BackupFilesExclude} = {
'/home' => [
'/steve/Packages'
]
};

presuming you *only* want to exclude /home/steve/Packages and not
/home/steve/**/Packages (where "**" matches any number of intermediate
directories).

Regards,
Holger

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post Exclusion not working with rsync 
Why bother with:

$Conf {BackupFilesExclude} = {>  '/home' => [>        '/steve/Packages'>  ]> };
Why not just:

$Conf{BackupFilesExclude} = ['/home/steve/Packages']

i..e, prefix is not required with rsync (only smb).


On Thu, Nov 17, 2011 at 6:08 PM, Holger Parplies <wbppc < at > parplies.de> wrote:
Hi,

Mark Maciolek wrote on 2011-10-27 07:54:26 -0400 [Re: [BackupPC-users] Exclusion not working with rsync]:
On 10/26/2011 8:49 PM, Steve M. Robbins wrote:
I'm backing up my local machine using rsync; see configuration below.
Despite the exclusion, I still get /home/steve/Packages in my backup.
[...]
$Conf{RsyncShareName} = [
   '/etc',
   '/boot',
   '/home',
   '/var/mail',
   '/var/www',
   '/sound+vision'
];

$Conf{BackupFilesExclude} = {
   '/home' =>  [
     '/home/steve/Packages'
   ]
};
[...]

Steve,

You need to change the key /home should be *

$Conf{BackupFilesExclude} = {
   '*' => ['
     '/home/steve/Packages
   ]
};

that is plain wrong. This would, in effect, exclude

       /etc/home/steve/Packages
       /boot/home/steve/Packages
       /home/home/steve/Packages
       /var/mail/home/steve/Packages
       /var/www/home/steve/Packages
       /sound+vision/home/steve/Packages

which does not get you much further than the original exclusion of

       /home/home/steve/Packages

Steve M. Robbins wrote on 2011-10-27 22:11:34 -0500 [Re: [BackupPC-users] Exclusion not working with rsync]:
[...]
Well, experimentation indicates that I need to strip off
the prefix;

Right. Documentation also indicates that (rsync(1), probably also mentioned in
the BackupPC docs - if you think about the examples in config.pl, they at
least hint at this).

i.e. change [...] to

 $Conf{BackupFilesExclude} = {
   '/home' => [
     'steve/Packages'
   ]
 };

Actually, it's

$Conf {BackupFilesExclude} = {
 '/home' => [
       '/steve/Packages'
 ]
};

presuming you *only* want to exclude /home/steve/Packages and not
/home/steve/**/Packages (where "**" matches any number of intermediate
directories).

Regards,
Holger

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post Exclusion not working with rsync 
On Fri, Nov 18, 2011 at 12:08:23AM +0100, Holger Parplies wrote:

Actually, it's

$Conf {BackupFilesExclude} = {
'/home' => [
'/steve/Packages'
]
};

presuming you *only* want to exclude /home/steve/Packages and not [...]

Thanks -- that is indeed what I wanted.

-Steve

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post Exclusion not working with rsync 
Hi,

Alex Machina wrote on 2011-11-17 20:51:46 -0500 [Re: [BackupPC-users] Exclusion not working with rsync]:
Why bother with:

$Conf {BackupFilesExclude} = {>  '/home' => [>        '/steve/Packages'>  ]> };
Why not just:

$Conf{BackupFilesExclude} = ['/home/steve/Packages']

because the former works while the latter doesn't Smile.

I'm not sure whether you are suggesting a change to BackupPC to strip out
share names from in-/excludes. If you are, I'm not sure I agree that that
would even be a good idea. In any case, it would be complicated to implement
and require exact knowledge of in-/exclude syntax for the XferMethod within
BackupPC.

i..e, prefix is not required with rsync (only smb).

You're probably trying to say that the original poster should be using
RsyncShareName = '/' instead of whatever he is currently using. I don't really
feel like getting into religious wars over configuration practices, so I'll
just hint at the consequences of *changing* the backup layout (like
retransferring all data, not to mention the topic of restoring data from
before the change). My personal recommendation is: use whatever you feel
comfortable with and what works for you.

Regards,
Holger

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB