Re: [BackupPC-users] Excluding folders from backup

2017-04-12 Thread Holger Parplies
Hi,

Sorin Srbu wrote on 2017-04-10 06:14:07 + [Re: [BackupPC-users] Excluding 
folders from backup]:
> > From: Holger Parplies [mailto:wb...@parplies.de]
> > [...]
> > 
> > Almost. In fact, an exclude for "*" is applied to all shares *which don't
> > have a specific exclude*. So, if you used, for example,
> > 
> > $Conf {BackupFilesExclude} = {
> > '/home/sorin' => [
> > '/Videos'
> > ],
> > '*' => [
> > '/ownCloud'
> > ]
> > };
> > 
> > /home/sorin/Videos would be excluded, but /home/sorin/ownCloud would
> > *not*!
> 
> Hmm. This could be applied to all cache-folders I don't want backed up.
> With the info above, I'd need to add * and /cache, /Cache and perhaps
> /.cache and /.Cache to catch them all.
> 
> Am I thinking correctly now?

I'm not sure I understand you correctly. If you want to exclude those
directories everywhere, the exclude

$Conf {BackupFilesExclude} = {
'*' => [
'/cache',
'/Cache',
'/.cache',
'/.Cache',
],
};

would work, ***however***, if you have more keys, for example

'/home/sorin' => [
'/Videos',
'/ownCloud',
],

you would need to copy the cache-related excludes into that also, i.e.

'/home/sorin' => [
'/Videos',
'/ownCloud',
'/cache',
'/Cache',
'/.cache',
'/.Cache',
],

because the '*' excludes *don't apply* for shares with a specific exclude,
as I tried to explain above.

Hope that makes it clearer.

Regards,
Holger

--
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
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] Excluding folders from backup

2017-04-10 Thread Sorin Srbu
> -Original Message-
> From: Holger Parplies [mailto:wb...@parplies.de]
> Sent: den 7 april 2017 18:49
> To: General list for user discussion, questions and support  us...@lists.sourceforge.net>
> Subject: Re: [BackupPC-users] Excluding folders from backup
> 
> Hi,
> 
> Bowie Bailey wrote on 2017-04-07 09:17:29 -0400 [Re: [BackupPC-users]
> Excluding folders from backup]:
> > On 4/7/2017 2:55 AM, Sorin Srbu wrote:
> > >> From: Markus Koeberl [mailto:markus.koeb...@tugraz.at]
> > >> On Friday 07 April 2017 07:29:30 Sorin Srbu wrote:
> > >>> [...]
> > >>> The field BackupFilesOnly is empty, as this would override anything
in
> > >>> BackupFilesExclude as per the documentation.
> 
> that is not true for rsync, only for smb (and possibly tar, though I don't
> think so). With rsync, you *can* use both BackupFilesOnly and
> BackupFilesExclude in combination.
> 
> > >> [...]
> > >> It should look like this in your config file:
> > >> $Conf{RsyncShareName} = [
> > >>'/home/sorin'
> > >> ];
> > >> $Conf{BackupFilesExclude} = {
> > >>'/home/sorin' => [
> > >>  '/Videos',
> > >>  '/ownCloud'
> > >>]
> > >> };
> > > [...]
> > > Doh! Now I get it! Thank you!
> > > You first have to add a "root" and then the folders you want excluded.
> > > Seeing it now, it's rather obvious.
> 
> It doesn't seem to be that intuitive ... this mistake has been made a lot.
> Please note that, as Markus implied, the excludes need to be relative to
the
> share, i.e. "/Videos" and "/ownCloud" - whether you use the share name or
"*"
> as the key. An exclude of "/home/sorin/Videos" would match a
file/directory
> "/home/sorin/home/sorin/Videos" (which you likely don't have, so the
exclude
> would not have any effect).
> 
> > AND the "root" must either match one of your share names or * to match
> > all of your shares.
> 
> Almost. In fact, an exclude for "*" is applied to all shares *which don't
> have a specific exclude*. So, if you used, for example,
> 
> $Conf {BackupFilesExclude} = {
> '/home/sorin' => [
> '/Videos'
> ],
> '*' => [
> '/ownCloud'
> ]
> };
> 
> /home/sorin/Videos would be excluded, but /home/sorin/ownCloud would
> *not*!

Hmm. This could be applied to all cache-folders I don't want backed up.
With the info above, I'd need to add * and /cache, /Cache and perhaps
/.cache and /.Cache to catch them all.

Am I thinking correctly now?

-- 
//Sorin


smime.p7s
Description: S/MIME cryptographic signature
--
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
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] Excluding folders from backup

2017-04-10 Thread Sorin Srbu
> -Original Message-
> From: Bowie Bailey [mailto:bowie_bai...@buc.com]
> Sent: den 7 april 2017 15:17
> To: backuppc-users@lists.sourceforge.net
> Subject: Re: [BackupPC-users] Excluding folders from backup
> 
> >> If you set RsyncShareName to /home/sorin you need to define a key
> >> /home/sorin for BackupFilesExclude and add /Videos and /ownCloud to
this
> >> key
> >>
> >> It should look like this in your config file:
> >> $Conf{RsyncShareName} = [
> >>'/home/sorin'
> >> ];
> >> $Conf{BackupFilesExclude} = {
> >>'/home/sorin' => [
> >>  '/Videos',
> >>  '/ownCloud'
> >>]
> >> };
> >
> > This is how my config file looks like:
> >
> > $Conf{BackupFilesExclude} = {
> >'/home/sorin/ownCloud' => [],
> >'/home/sorin/Videos' => []
> > };
> > $Conf{RsyncShareName} = [
> >'/home/sorin',
> > ];
> >
> >
> > Doh! Now I get it! Thank you!
> > You first have to add a "root" and then the folders you want excluded.
> > Seeing it now, it's rather obvious.
> 
> AND the "root" must either match one of your share names or * to match
> all of your shares.

It makes sense, now.
Thanks!

-- 
//Sorin


smime.p7s
Description: S/MIME cryptographic signature
--
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
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] Excluding folders from backup

2017-04-07 Thread Holger Parplies
Hi,

Bowie Bailey wrote on 2017-04-07 09:17:29 -0400 [Re: [BackupPC-users] Excluding 
folders from backup]:
> On 4/7/2017 2:55 AM, Sorin Srbu wrote:
> >> From: Markus Koeberl [mailto:markus.koeb...@tugraz.at]
> >> On Friday 07 April 2017 07:29:30 Sorin Srbu wrote:
> >>> [...]
> >>> The field BackupFilesOnly is empty, as this would override anything in
> >>> BackupFilesExclude as per the documentation.

that is not true for rsync, only for smb (and possibly tar, though I don't  
think so). With rsync, you *can* use both BackupFilesOnly and 
BackupFilesExclude in combination.

> >> [...]
> >> It should look like this in your config file:
> >> $Conf{RsyncShareName} = [
> >>'/home/sorin'
> >> ];
> >> $Conf{BackupFilesExclude} = {
> >>'/home/sorin' => [
> >>  '/Videos',
> >>  '/ownCloud'
> >>]
> >> };
> > [...]
> > Doh! Now I get it! Thank you!
> > You first have to add a "root" and then the folders you want excluded.
> > Seeing it now, it's rather obvious.

It doesn't seem to be that intuitive ... this mistake has been made a lot.
Please note that, as Markus implied, the excludes need to be relative to the
share, i.e. "/Videos" and "/ownCloud" - whether you use the share name or "*"
as the key. An exclude of "/home/sorin/Videos" would match a file/directory
"/home/sorin/home/sorin/Videos" (which you likely don't have, so the exclude
would not have any effect).

> AND the "root" must either match one of your share names or * to match 
> all of your shares.

Almost. In fact, an exclude for "*" is applied to all shares *which don't
have a specific exclude*. So, if you used, for example,

$Conf {BackupFilesExclude} = {
'/home/sorin' => [
'/Videos'
],
'*' => [
'/ownCloud'
]
};

/home/sorin/Videos would be excluded, but /home/sorin/ownCloud would *not*!

Regards,
Holger

--
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
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] Excluding folders from backup

2017-04-07 Thread Bowie Bailey
On 4/7/2017 2:55 AM, Sorin Srbu wrote:
>> -Original Message-
>> From: Markus Koeberl [mailto:markus.koeb...@tugraz.at]
>> Sent: den 7 april 2017 08:37
>> To: backuppc-users@lists.sourceforge.net
>> Cc: Sorin Srbu <sorin.s...@orgfarm.uu.se>
>> Subject: Re: [BackupPC-users] Excluding folders from backup
>>
>> On Friday 07 April 2017 07:29:30 Sorin Srbu wrote:
>>> Hello all,
>>>
>>> I'm at a loss here. I just can't get this to work.
>>>
>>> Situation:
>>> I have set to backup my homefolder /home/sorin on a CentOS 7.3 x64 box,
>> but
>>> I want to exclude the folders /home/sorin/Videos and
>> /home/sorin/ownCloud.
>>> To achieve this I have /home/sorin set in the field RsyncShareName.
>>>
>>> In the field BackupFilesExclude I have the two folders
> /home/sorin/Videos
>>> and /home/sorin/ownCloud.
>>>
>>> The override checkbox is ticked on both RsyncShareName and
>>> BackupFilesExclude.
>>>
>>> The field BackupFilesOnly is empty, as this would override anything in
>>> BackupFilesExclude as per the documentation.
>>>
>>> Rsync is used for this client.
>>> BackupPC v3.3.1 is used on the BPC-server, which runs CentOS 7.3.1611
> x64.
>>>
>>> Now, is there any particular reason why the folders /home/sorin/ownCloud
>> and
>>> /home/sorin/Videos _still_ gets backed up, despite my specifically
> adding
>>> exceptions/exclusions for them?
>>>
>>> I don't understand this... :-/
>>> What am I missing here?
>>>
>>> If more information is needed, please ask!
>>>
>>> Thanks in advance for any hints.
>>
>> If you set RsyncShareName to /home/sorin you need to define a key
>> /home/sorin for BackupFilesExclude and add /Videos and /ownCloud to this
>> key
>>
>> It should look like this in your config file:
>> $Conf{RsyncShareName} = [
>>'/home/sorin'
>> ];
>> $Conf{BackupFilesExclude} = {
>>'/home/sorin' => [
>>  '/Videos',
>>  '/ownCloud'
>>]
>> };
>
> This is how my config file looks like:
>
> $Conf{BackupFilesExclude} = {
>'/home/sorin/ownCloud' => [],
>'/home/sorin/Videos' => []
> };
> $Conf{RsyncShareName} = [
>'/home/sorin',
> ];
>
>
> Doh! Now I get it! Thank you!
> You first have to add a "root" and then the folders you want excluded.
> Seeing it now, it's rather obvious.

AND the "root" must either match one of your share names or * to match 
all of your shares.

-- 
Bowie

--
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
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] Excluding folders from backup

2017-04-07 Thread Markus Koeberl
On Friday 07 April 2017 07:29:30 Sorin Srbu wrote:
> Hello all,
> 
> I'm at a loss here. I just can't get this to work.
> 
> Situation:
> I have set to backup my homefolder /home/sorin on a CentOS 7.3 x64 box, but
> I want to exclude the folders /home/sorin/Videos and /home/sorin/ownCloud.
> 
> To achieve this I have /home/sorin set in the field RsyncShareName.
> 
> In the field BackupFilesExclude I have the two folders /home/sorin/Videos
> and /home/sorin/ownCloud.
> 
> The override checkbox is ticked on both RsyncShareName and
> BackupFilesExclude.
> 
> The field BackupFilesOnly is empty, as this would override anything in
> BackupFilesExclude as per the documentation.
> 
> Rsync is used for this client.
> BackupPC v3.3.1 is used on the BPC-server, which runs CentOS 7.3.1611 x64.
> 
> 
> Now, is there any particular reason why the folders /home/sorin/ownCloud and
> /home/sorin/Videos _still_ gets backed up, despite my specifically adding
> exceptions/exclusions for them?
> 
> I don't understand this... :-/
> What am I missing here?
> 
> If more information is needed, please ask!
> 
> Thanks in advance for any hints.


If you set RsyncShareName to /home/sorin you need to define a key /home/sorin 
for BackupFilesExclude and add /Videos and /ownCloud to this key

It should look like this in your config file:
$Conf{RsyncShareName} = [
  '/home/sorin'
];
$Conf{BackupFilesExclude} = {
  '/home/sorin' => [
'/Videos',
'/ownCloud'
  ]
};


regards
Markus Köberl
-- 
Markus Koeberl
Graz University of Technology
Signal Processing and Speech Communication Laboratory
E-mail: markus.koeb...@tugraz.at

--
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
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] Excluding folders from backup

2017-04-07 Thread Sorin Srbu
> -Original Message-
> From: Markus Koeberl [mailto:markus.koeb...@tugraz.at]
> Sent: den 7 april 2017 08:37
> To: backuppc-users@lists.sourceforge.net
> Cc: Sorin Srbu <sorin.s...@orgfarm.uu.se>
> Subject: Re: [BackupPC-users] Excluding folders from backup
> 
> On Friday 07 April 2017 07:29:30 Sorin Srbu wrote:
> > Hello all,
> >
> > I'm at a loss here. I just can't get this to work.
> >
> > Situation:
> > I have set to backup my homefolder /home/sorin on a CentOS 7.3 x64 box,
> but
> > I want to exclude the folders /home/sorin/Videos and
> /home/sorin/ownCloud.
> >
> > To achieve this I have /home/sorin set in the field RsyncShareName.
> >
> > In the field BackupFilesExclude I have the two folders
/home/sorin/Videos
> > and /home/sorin/ownCloud.
> >
> > The override checkbox is ticked on both RsyncShareName and
> > BackupFilesExclude.
> >
> > The field BackupFilesOnly is empty, as this would override anything in
> > BackupFilesExclude as per the documentation.
> >
> > Rsync is used for this client.
> > BackupPC v3.3.1 is used on the BPC-server, which runs CentOS 7.3.1611
x64.
> >
> >
> > Now, is there any particular reason why the folders /home/sorin/ownCloud
> and
> > /home/sorin/Videos _still_ gets backed up, despite my specifically
adding
> > exceptions/exclusions for them?
> >
> > I don't understand this... :-/
> > What am I missing here?
> >
> > If more information is needed, please ask!
> >
> > Thanks in advance for any hints.
> 
> 
> If you set RsyncShareName to /home/sorin you need to define a key
> /home/sorin for BackupFilesExclude and add /Videos and /ownCloud to this
> key
> 
> It should look like this in your config file:
> $Conf{RsyncShareName} = [
>   '/home/sorin'
> ];
> $Conf{BackupFilesExclude} = {
>   '/home/sorin' => [
> '/Videos',
> '/ownCloud'
>   ]
> };


This is how my config file looks like:

$Conf{BackupFilesExclude} = {
  '/home/sorin/ownCloud' => [],
  '/home/sorin/Videos' => []
};
$Conf{RsyncShareName} = [
  '/home/sorin',
];


Doh! Now I get it! Thank you!
You first have to add a "root" and then the folders you want excluded.
Seeing it now, it's rather obvious.

-- 
//Sorin


smime.p7s
Description: S/MIME cryptographic signature
--
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
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] Excluding folders from backup

2017-04-06 Thread Sorin Srbu
Hello all,

I'm at a loss here. I just can't get this to work.

Situation:
I have set to backup my homefolder /home/sorin on a CentOS 7.3 x64 box, but
I want to exclude the folders /home/sorin/Videos and /home/sorin/ownCloud.

To achieve this I have /home/sorin set in the field RsyncShareName.

In the field BackupFilesExclude I have the two folders /home/sorin/Videos
and /home/sorin/ownCloud.

The override checkbox is ticked on both RsyncShareName and
BackupFilesExclude.

The field BackupFilesOnly is empty, as this would override anything in
BackupFilesExclude as per the documentation.

Rsync is used for this client.
BackupPC v3.3.1 is used on the BPC-server, which runs CentOS 7.3.1611 x64.


Now, is there any particular reason why the folders /home/sorin/ownCloud and
/home/sorin/Videos _still_ gets backed up, despite my specifically adding
exceptions/exclusions for them?

I don't understand this... :-/
What am I missing here?

If more information is needed, please ask!

Thanks in advance for any hints.

-- 
BW,
Sorin
---
# Sorin Srbu, Sysadmin
# Uppsala University
# Dept of Medicinal Chemistry
# Div of Org Pharm Chem
# Box 574
# SE-75123 Uppsala
# Sweden
#
# Phone: +46 (0)18-4714482
# Visit: BMC, Husargatan 3, D5:512b
# Web: http://www.orgfarm.uu.se
---
# O<  ASCII ribbon campaign - Against html E-mail 
# http://tinyurl.com/ascii-ribbon-campaign
#
# This message was not sent from an iProduct!
#
# Please consider the environment before printing this email.
# Join the campaign at http://thinkBeforePrinting.org
#
# MotD follows:
Climate is what you expect. Weather is what you get.



smime.p7s
Description: S/MIME cryptographic signature
--
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
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/