Re: [BackupPC-users] BackupFilesExclude doesn't exclude a directory from backups

2022-02-24 Thread Mike Hughes
Hi Chiel,

Since you're targeting /var, the directory to exclude would be /log, not 
/var/log. Be sure to add it directly under the BackupFilesExclude config for 
the /var share.

From: chiel 
Sent: Thursday, February 24, 2022 7:16 AM
To: backuppc-users@lists.sourceforge.net 
Subject: [BackupPC-users] BackupFilesExclude doesn't exclude a directory from 
backups

Hello,

I'm using BackupPC 4.4.0 and used the web gui to backup some
directories. This created the following config.

$Conf{RsyncShareName} = [
   '/etc/',
   '/usr/',
   '/var/'
];

I try to exclude the log directory using the following config. However
this doesn't seem to work.

$Conf{BackupFilesExclude} = {
   '*' => [
 '/var/log'
   ]
};

The log directory is still included in the backups.

Is the above config correct? I'm using rsync. All machines are ubuntu.

Chiel


___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


[BackupPC-users] BackupFilesExclude doesn't exclude a directory from backups

2022-02-24 Thread chiel

Hello,

I'm using BackupPC 4.4.0 and used the web gui to backup some
directories. This created the following config.

$Conf{RsyncShareName} = [
  '/etc/',
  '/usr/',
  '/var/'
];

I try to exclude the log directory using the following config. However
this doesn't seem to work.

$Conf{BackupFilesExclude} = {
  '*' => [
    '/var/log'
  ]
};

The log directory is still included in the backups.

Is the above config correct? I'm using rsync. All machines are ubuntu.

Chiel


___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] BackupFilesExclude osx catalina suggestions?

2020-10-04 Thread Greg Harris
You may want to consider adding /Library also.  This would include system 
configuration and preference files.  The /User libraries only include the user 
level configs and prefs.

Thanks,

Greg Harris

On Oct 4, 2020, at 1:36 PM, Todd Wade 
mailto:waveri...@gmail.com>> wrote:

On 10/4/20 1:29 PM, Robert Trevellyan wrote:
Hi Todd,
I backup Macs with /Users as the RsyncShareName. My excludes are mostly for 
transient things like logs and caches:

nice, thanks

Are you trying to backup the entire system, including OS and apps? My goal is 
only to backup user data in BackupPC. I let Time Machine take care of the bare 
metal backup.

Yeah. I do have Carbon Copy Cloner backups too. I guess I was thinking a yet 
another near mirror backup would be nice to have, but I guess backing up 
outside /Users is just pointless and a waste of disk space.

Thanks for the sanity check!


___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/

___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] BackupFilesExclude osx catalina suggestions?

2020-10-04 Thread Todd Wade

On 10/4/20 1:29 PM, Robert Trevellyan wrote:

Hi Todd,

I backup Macs with /Users as the RsyncShareName. My excludes are mostly 
for transient things like logs and caches:


nice, thanks

Are you trying to backup the entire system, including OS and apps? My 
goal is only to backup user data in BackupPC. I let Time Machine take 
care of the bare metal backup.


Yeah. I do have Carbon Copy Cloner backups too. I guess I was thinking a 
yet another near mirror backup would be nice to have, but I guess 
backing up outside /Users is just pointless and a waste of disk space.


Thanks for the sanity check!


___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] BackupFilesExclude osx catalina suggestions?

2020-10-04 Thread Robert Trevellyan
Hi Todd,

I backup Macs with /Users as the RsyncShareName. My excludes are mostly for
transient things like logs and caches:
$Conf{BackupFilesExclude} = {
  '/Users' => [
'.DS_Store',
'.Trash',
'.bash*',
'.dropbox*',
'.sync*',
'_sophos',
'Album Artwork',
'Cache*',
'CrashReporter',
'EyeTV Archive',
'Google/Chrome',
'GoogleSoftwareUpdate',
'Logs',
'MobileSync',
'Podcasts',
'PubSub',
'Resilio Sync',
'Saved Application State*',
'Shared/adi',
'SyncServices',
'VirtualBox*'
  ]
};

Are you trying to backup the entire system, including OS and apps? My goal
is only to backup user data in BackupPC. I let Time Machine take care of
the bare metal backup.

Robert Trevellyan


On Sun, Oct 4, 2020 at 12:25 PM Todd Wade  wrote:

>
> I can't find anything on the mailing list so I'm guessing its unlikely but
> -
>
> Any chance someone has assembled a solid BackupFilesExclude for osx
> Catalina?
>
> The link here has no backuppc content any more:
>
> https://github.com/backuppc/backuppc/wiki/How-to-make-Backup-using-Rsync-server-on-Mac-OS
>
>
> Its looking like I backed up about 15gb of /private that I know I don't
> need backed up. Its also looking like I should exclude
> /System/Volumes/Data based on what I'm seeing in the Xfer Error logs.
>
> All in all it looks like I backed up about 25gb that I know I don't need
> backed up, and the disk usage seems to be growing, probably backing up
> stuff I'll never need.
>
>  related question:
>
> any advice on how to delete a backup for a host so I can start over? I'd
> like to reclaim this wasted disk space. Theres nothing on the wiki(?)
> and the only things google can find are very old stuff that I'm assuming
> applies to backuppc v3.
>
> 
>
> If I have to figure it out myself I'll report back but just hoping
> someone else has been down this path and is willing to share experience.
>
> Love BackupPC what amazing software! I've been using it about 6 months
> and its like a dream. I almost started down the Bacula path and I'm so
> glad I went with BackupPC instead.
>
>
>
> ___
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:https://github.com/backuppc/backuppc/wiki
> Project: https://backuppc.github.io/backuppc/
>
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


[BackupPC-users] BackupFilesExclude osx catalina suggestions?

2020-10-04 Thread Todd Wade



I can't find anything on the mailing list so I'm guessing its unlikely but -

Any chance someone has assembled a solid BackupFilesExclude for osx 
Catalina?


The link here has no backuppc content any more: 
https://github.com/backuppc/backuppc/wiki/How-to-make-Backup-using-Rsync-server-on-Mac-OS



Its looking like I backed up about 15gb of /private that I know I don't 
need backed up. Its also looking like I should exclude 
/System/Volumes/Data based on what I'm seeing in the Xfer Error logs.


All in all it looks like I backed up about 25gb that I know I don't need 
backed up, and the disk usage seems to be growing, probably backing up 
stuff I'll never need.


 related question:

any advice on how to delete a backup for a host so I can start over? I'd 
like to reclaim this wasted disk space. Theres nothing on the wiki(?) 
and the only things google can find are very old stuff that I'm assuming 
applies to backuppc v3.




If I have to figure it out myself I'll report back but just hoping 
someone else has been down this path and is willing to share experience.


Love BackupPC what amazing software! I've been using it about 6 months 
and its like a dream. I almost started down the Bacula path and I'm so 
glad I went with BackupPC instead.




___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] BackupFilesExclude issue

2017-05-12 Thread Ray Frush
Craig-

The fix appears to work in my instance.  I can no longer replicate the
problem, and the config file, managed via CGI, appears as expected.



Thanks!



On Fri, May 12, 2017 at 11:21 AM, Craig Barratt <
cbarr...@users.sourceforge.net> wrote:

> I pushed a fix
> 
> for this last night.
>
> Craig
>
> On Fri, May 12, 2017 at 9:56 AM, Ray Frush 
> wrote:
>
>> I’m seeing this issue too!
>>
>> I noticed that with 4.1.2  if I use the WebUI (CGI) to edit a host config
>> that has an existing $Conf{BackupFilesExclude} set, under the’xfer’ tab,
>> there’s a checkmark for the Override of “BackupFilesExclude”, but the CGI
>> does not show the list of excludes.
>>
>> Saving the config leaves an empty set:
>>
>> $Conf{BackupFilesExclude} = {};
>>
>> or (on a second test)
>>
>> $Conf{BackupFilesExclude} = {
>>   '*' => []
>> };
>>
>>
>> But the LOG reports, incorrectly:
>>
>> 017-05-12 10:44:30 backuppc changed BackupFilesExclude in
>> host grover config to {} from {'*' => ['/proc','/sys','/mnt','/net',
>> '/dev','/var/log/lastlog','/var/run','/ais02','/backup','/ex
>> port','/software','/oracledba','/syswork’]}
>> or
>> 2017-05-12 10:52:00 backuppc changed BackupFilesExclude in
>> host grover config to {'*' => []} from {'*' =>
>> ['/proc','/sys','/mnt','/net','/dev','/var/log/lastlog','/va
>> r/run','/ais02','/backup','/export','/software','/oracledba','/syswork']}
>>
>>
>>
>> Please let me know if there's any additional information we can provid.
>>
>>
>> --
>> Ray Frush
>>
>> On Thu, May 11, 2017 at 5:38 PM, Moorcroft, Mark (ARC-TS)[Analytical
>> Mechanics Associates, INC.]  wrote:
>>
>>> Using the 4.1.2 COPR on CentOS7. If I set the BackupFilesExclude in
>>> config.pl it will be overwritten the second I change any other setting.
>>> If I change the setting in the GUI it saves, but reverts to empty the next
>>> time any other setting is saved.
>>>
>>>
>>> 2017-05-11 16:29:05 tsadmin changed MaxOldPerPCLogFiles in main config
>>> to '12' from '10'
>>> 2017-05-11 16:29:05 Reloading config/host files via CGI request
>>> 2017-05-11 16:29:05 Next wakeup is 2017-05-11 17:00:00
>>> 2017-05-11 16:35:20 tsadmin changed BackupFilesExclude in main config to
>>> {'*' => ['lastlog']} from {'*' => []}
>>> 2017-05-11 16:35:20 Reloading config/host files via CGI request
>>> 2017-05-11 16:35:20 Next wakeup is 2017-05-11 17:00:00
>>> 2017-05-11 16:35:39 tsadmin changed BackupFilesExclude in main config to
>>> {'*' => []} from {'*' => ['lastlog']}
>>> 2017-05-11 16:35:39 tsadmin changed MaxOldPerPCLogFiles in main config
>>> to '10' from '12'
>>> 2017-05-11 16:35:39 Reloading config/host files via CGI request
>>> 2017-05-11 16:35:39 Next wakeup is 2017-05-11 17:00:00
>>>
>>>
>>> Ideas?
>>>
>>> --
>>>
>>> Contractor: AMA Incorporated
>>> Mark Moorcroft – Lead Admin
>>> ESTRAD Linux Computer Support
>>> NASA Ames Research Center
>>> Moffett Field, CA 94035-1000
>>> N230/108 (MS N230-1)
>>>
>>>
>>> 
>>> --
>>> 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/
>>>
>>
>>
>>
>> --
>> Time flies like an arrow, but fruit flies like a banana.
>>
>> 
>> --
>> 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/
>>
>>
>
> 
> --
> 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/
>
>


-- 
Time flies like an arrow, but fruit flies like a banana.
--
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:  

Re: [BackupPC-users] BackupFilesExclude issue

2017-05-12 Thread Craig Barratt
I pushed a fix

for this last night.

Craig

On Fri, May 12, 2017 at 9:56 AM, Ray Frush  wrote:

> I’m seeing this issue too!
>
> I noticed that with 4.1.2  if I use the WebUI (CGI) to edit a host config
> that has an existing $Conf{BackupFilesExclude} set, under the’xfer’ tab,
> there’s a checkmark for the Override of “BackupFilesExclude”, but the CGI
> does not show the list of excludes.
>
> Saving the config leaves an empty set:
>
> $Conf{BackupFilesExclude} = {};
>
> or (on a second test)
>
> $Conf{BackupFilesExclude} = {
>   '*' => []
> };
>
>
> But the LOG reports, incorrectly:
>
> 017-05-12 10:44:30 backuppc changed BackupFilesExclude in
> host grover config to {} from {'*' => ['/proc','/sys','/mnt','/net',
> '/dev','/var/log/lastlog','/var/run','/ais02','/backup','/
> export','/software','/oracledba','/syswork’]}
> or
> 2017-05-12 10:52:00 backuppc changed BackupFilesExclude in
> host grover config to {'*' => []} from {'*' =>
> ['/proc','/sys','/mnt','/net','/dev','/var/log/lastlog','/
> var/run','/ais02','/backup','/export','/software','/
> oracledba','/syswork']}
>
>
>
> Please let me know if there's any additional information we can provid.
>
>
> --
> Ray Frush
>
> On Thu, May 11, 2017 at 5:38 PM, Moorcroft, Mark (ARC-TS)[Analytical
> Mechanics Associates, INC.]  wrote:
>
>> Using the 4.1.2 COPR on CentOS7. If I set the BackupFilesExclude in
>> config.pl it will be overwritten the second I change any other setting.
>> If I change the setting in the GUI it saves, but reverts to empty the next
>> time any other setting is saved.
>>
>>
>> 2017-05-11 16:29:05 tsadmin changed MaxOldPerPCLogFiles in main config to
>> '12' from '10'
>> 2017-05-11 16:29:05 Reloading config/host files via CGI request
>> 2017-05-11 16:29:05 Next wakeup is 2017-05-11 17:00:00
>> 2017-05-11 16:35:20 tsadmin changed BackupFilesExclude in main config to
>> {'*' => ['lastlog']} from {'*' => []}
>> 2017-05-11 16:35:20 Reloading config/host files via CGI request
>> 2017-05-11 16:35:20 Next wakeup is 2017-05-11 17:00:00
>> 2017-05-11 16:35:39 tsadmin changed BackupFilesExclude in main config to
>> {'*' => []} from {'*' => ['lastlog']}
>> 2017-05-11 16:35:39 tsadmin changed MaxOldPerPCLogFiles in main config to
>> '10' from '12'
>> 2017-05-11 16:35:39 Reloading config/host files via CGI request
>> 2017-05-11 16:35:39 Next wakeup is 2017-05-11 17:00:00
>>
>>
>> Ideas?
>>
>> --
>>
>> Contractor: AMA Incorporated
>> Mark Moorcroft – Lead Admin
>> ESTRAD Linux Computer Support
>> NASA Ames Research Center
>> Moffett Field, CA 94035-1000
>> N230/108 (MS N230-1)
>>
>>
>> 
>> --
>> 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/
>>
>
>
>
> --
> Time flies like an arrow, but fruit flies like a banana.
>
> 
> --
> 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/
>
>
--
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] BackupFilesExclude issue

2017-05-12 Thread Ray Frush
I’m seeing this issue too!

I noticed that with 4.1.2  if I use the WebUI (CGI) to edit a host config
that has an existing $Conf{BackupFilesExclude} set, under the’xfer’ tab,
there’s a checkmark for the Override of “BackupFilesExclude”, but the CGI
does not show the list of excludes.

Saving the config leaves an empty set:

$Conf{BackupFilesExclude} = {};

or (on a second test)

$Conf{BackupFilesExclude} = {
  '*' => []
};


But the LOG reports, incorrectly:

017-05-12 10:44:30 backuppc changed BackupFilesExclude in
host grover config to {} from {'*' =>
['/proc','/sys','/mnt','/net','/dev','/var/log/lastlog','/var/run','/ais02','/backup','/export','/software','/oracledba','/syswork’]}
or
2017-05-12 10:52:00 backuppc changed BackupFilesExclude in
host grover config to {'*' => []} from {'*' =>
['/proc','/sys','/mnt','/net','/dev','/var/log/lastlog','/var/run','/ais02','/backup','/export','/software','/oracledba','/syswork']}



Please let me know if there's any additional information we can provid.


--
Ray Frush

On Thu, May 11, 2017 at 5:38 PM, Moorcroft, Mark (ARC-TS)[Analytical
Mechanics Associates, INC.]  wrote:

> Using the 4.1.2 COPR on CentOS7. If I set the BackupFilesExclude in
> config.pl it will be overwritten the second I change any other setting.
> If I change the setting in the GUI it saves, but reverts to empty the next
> time any other setting is saved.
>
>
> 2017-05-11 16:29:05 tsadmin changed MaxOldPerPCLogFiles in main config to
> '12' from '10'
> 2017-05-11 16:29:05 Reloading config/host files via CGI request
> 2017-05-11 16:29:05 Next wakeup is 2017-05-11 17:00:00
> 2017-05-11 16:35:20 tsadmin changed BackupFilesExclude in main config to
> {'*' => ['lastlog']} from {'*' => []}
> 2017-05-11 16:35:20 Reloading config/host files via CGI request
> 2017-05-11 16:35:20 Next wakeup is 2017-05-11 17:00:00
> 2017-05-11 16:35:39 tsadmin changed BackupFilesExclude in main config to
> {'*' => []} from {'*' => ['lastlog']}
> 2017-05-11 16:35:39 tsadmin changed MaxOldPerPCLogFiles in main config to
> '10' from '12'
> 2017-05-11 16:35:39 Reloading config/host files via CGI request
> 2017-05-11 16:35:39 Next wakeup is 2017-05-11 17:00:00
>
>
> Ideas?
>
> --
>
> Contractor: AMA Incorporated
> Mark Moorcroft – Lead Admin
> ESTRAD Linux Computer Support
> NASA Ames Research Center
> Moffett Field, CA 94035-1000
> N230/108 (MS N230-1)
>
>
> 
> --
> 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/
>



-- 
Time flies like an arrow, but fruit flies like a banana.
--
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] BackupFilesExclude issue

2017-05-11 Thread Moorcroft, Mark (ARC-TS)[Analytical Mechanics Associates, INC.]
Using the 4.1.2 COPR on CentOS7. If I set the BackupFilesExclude in config.pl 
it will be overwritten the second I change any other setting. If I change the 
setting in the GUI it saves, but reverts to empty the next time any other 
setting is saved. 


2017-05-11 16:29:05 tsadmin changed MaxOldPerPCLogFiles in main config to '12' 
from '10'
2017-05-11 16:29:05 Reloading config/host files via CGI request
2017-05-11 16:29:05 Next wakeup is 2017-05-11 17:00:00
2017-05-11 16:35:20 tsadmin changed BackupFilesExclude in main config to {'*' 
=> ['lastlog']} from {'*' => []}
2017-05-11 16:35:20 Reloading config/host files via CGI request
2017-05-11 16:35:20 Next wakeup is 2017-05-11 17:00:00
2017-05-11 16:35:39 tsadmin changed BackupFilesExclude in main config to {'*' 
=> []} from {'*' => ['lastlog']}
2017-05-11 16:35:39 tsadmin changed MaxOldPerPCLogFiles in main config to '10' 
from '12'
2017-05-11 16:35:39 Reloading config/host files via CGI request
2017-05-11 16:35:39 Next wakeup is 2017-05-11 17:00:00


Ideas?
 
--
 
Contractor: AMA Incorporated 
Mark Moorcroft – Lead Admin
ESTRAD Linux Computer Support
NASA Ames Research Center 
Moffett Field, CA 94035-1000
N230/108 (MS N230-1)


--
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] BackupFilesExclude

2016-09-13 Thread chrischan
Hi,


>>
>> I am using rsync as method an it is configured as follows:
>>
>> $Conf{BackupFilesExclude} = {
>>  '/' => [
>>'/var/lib/libvirt/images'
>>  ],
>>  '/srv' => [
>>'vmimg'
>>  ]
>> };
>>
>> I want BackupPC to ignore all files under /srv/vmimg but when backing up
>> it transfers them anyways. Why? What is the correfct syntax?
> Are your shares named "/" and "/srv"?
Well, I just realize my share was named /srv/ instead of /srv. So I 
guess I found the issue. I'll test.

Thanks for the hint.
Christian

> They keys for BackupFilesExclude must either be "*" or one of the shares
> defined in RsyncShareName.
>


--
___
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] BackupFilesExclude

2016-09-13 Thread Bowie Bailey
On 9/13/2016 12:11 AM, chrisc...@knebb.de wrote:
> Hi all,
>
>
> I have issues with BackupFilesExclude.
>
>
> I am using rsync as method an it is configured as follows:
>
> $Conf{BackupFilesExclude} = {
> '/' => [
>   '/var/lib/libvirt/images'
> ],
> '/srv' => [
>   'vmimg'
> ]
> };
>
> I want BackupPC to ignore all files under /srv/vmimg but when backing up
> it transfers them anyways. Why? What is the correfct syntax?

Are your shares named "/" and "/srv"?

They keys for BackupFilesExclude must either be "*" or one of the shares 
defined in RsyncShareName.

-- 
Bowie

--
___
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] BackupFilesExclude

2016-09-12 Thread chrischan
Hi all,


I have issues with BackupFilesExclude.


I am using rsync as method an it is configured as follows:

$Conf{BackupFilesExclude} = {
   '/' => [
 '/var/lib/libvirt/images'
   ],
   '/srv' => [
 'vmimg'
   ]
};

I want BackupPC to ignore all files under /srv/vmimg but when backing up 
it transfers them anyways. Why? What is the correfct syntax?


THanks!


Christian



--
___
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] BackupFilesExclude

2013-02-15 Thread Carl Cravens
You don't need the trailing /* with rsync.  I use that in a few places, but 
only because it excludes everything under the directory, but backs up the 
directory itself.  Useful for restoring directory meta-data.

Note that the excludes are simply passed to the underlying transport (rsync, 
tar, etc)... see "INCLUDE/EXCLUDE PATTERN RULES" in the rsync man page for how 
they will get handled.

Mine typically looks like this (which is what the examples in the docs look 
like):

$Conf{BackupFilesExclude} = {
 '/mydata' => [
   '/vmware',
   '/xen',
   '/kvm'
 ]
};

-- 
Carl D Cravens (ccrav...@excelii.com), Ext 228 (620.327.1228)
Lead System Architect

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
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] BackupFilesExclude

2013-02-12 Thread Craig Bell
Thanks, I see that now.

I'm using rsync, so do I need the trailing '/*'  on the dirs I want to 
exclude?

I found the config file on disk, and right now it looks like this:


$Conf{BackupFilesExclude} = {
   '/mydata' => [
 'vmware/*',
 'xen/*',
 'kvm/*'
   ]
};


Is that correct?


--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
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] BackupFilesExclude

2013-02-12 Thread Les Mikesell
On Tue, Feb 12, 2013 at 10:18 AM, Craig Bell  wrote:
> I'm using the webbrowser interface Configuration Editor. In the Host
> Config, I added a large filesystem to the RsyncShareName (/mydata) and
> also added a few subdirs under it to the BackupFilesExclude (/mydata/kvm
> and /mydata/vmware).  I have no trailing slashes on those dir names. I
> clicked the Override checkbox under both of these.
>
> My next backup seemed to ignore the BackupFilesExclude, and it backed up
> evevrything under /mydata including the kvm and vmware dirs.
>
> Did I miss something? Why did it backup the excluded directories?

When adding excludes, be sure the 'key' matches the share where the
exclusion applies (or '*' for all of them).  The value is the path to
exclude.

-- 
  Les Mikesell
 lesmikes...@gmail.com

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
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] BackupFilesExclude

2013-02-12 Thread Craig Bell
I'm using the webbrowser interface Configuration Editor. In the Host 
Config, I added a large filesystem to the RsyncShareName (/mydata) and 
also added a few subdirs under it to the BackupFilesExclude (/mydata/kvm 
and /mydata/vmware).  I have no trailing slashes on those dir names. I 
clicked the Override checkbox under both of these.

My next backup seemed to ignore the BackupFilesExclude, and it backed up 
evevrything under /mydata including the kvm and vmware dirs.

Did I miss something? Why did it backup the excluded directories?

Thanks in advance

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
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] BackupFilesExclude for SMB

2012-07-08 Thread Bryan Keadle (.net)
>From this FAQ regarding subject:
http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=Smb_exclude

It got me closer, I've reduced the number of errors down pretty well.  But
it's far from intuitive.  For example, to skip these files:
NTUSER.DAT
ntuser.dat.LOG1
ntuser.dat.LOG2
UsrClass.dat
UsrClass.dat.LOG1
UsrClass.dat.LOG2


the entries that (finally) worked are (on the CGI page is):
*NTUSER.DAT
*ntuser.dat.LOG?
*UsrClass.dat
*UserClass.dat.LOG?

using any form of just the filename didn't work - prepending a wildcard is
what finally got me over that hump.  Also, filenames are case sensitive.

I was also able to successfully skip a set of user profile directories
(TestUser1, TestUser2, ...) like this:
*\TestUser?

But still, I have not found how to skip JUNCTION directories.  I've tried:
\Users\*\My Music\*
*\My Music\*

HOW CAN WE INCLUDE KNOWN JUNCTIONS IN BackupFilesExclude LIST?!?!?!  If I
can get this final piece to work, I will have near 0 errors on my Windows
SMB backups.

(I'm aware that I can avoid some of these problems using rSync backup, but
I need to get SMB working none-the-less).

PLEASE, PLEASE, somebody fill me in on the secret?!
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] BackupFilesExclude not working as expected

2012-06-06 Thread Aaron Cossey
On Wed, Jun 6, 2012 at 5:00 PM, Les Mikesell  wrote:
> On Wed, Jun 6, 2012 at 9:48 AM, Aaron Cossey  wrote:
>> > But when check to see what's running, this is what I see happening:
>>
>> dev4:~$ ps aux | grep rsync
>> root     25272  8.0  0.0  15472  2404 ?        Ds   16:46   0:00
>> /usr/bin/rsync --server --sender --numeric-ids --perms --owner --group
>> -D --links --hard-links --times --block-size=2048 --recursive
>> --one-file-system --no-compress --ignore-times . /srv/
>
> Rsync doesn't put the exclude list on the comand line (unless you add
> some explicitly as argurments).  Look at the xferlog for the backup to
> see what excludes were sent.
>
> --
>  Les Mikesell
>    lesmikes...@gmail.com
>

Ok, then I'll let it run overnight and see how it goes.
Thanks for the help!

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] BackupFilesExclude not working as expected

2012-06-06 Thread Les Mikesell
On Wed, Jun 6, 2012 at 9:48 AM, Aaron Cossey  wrote:
> > But when check to see what's running, this is what I see happening:
>
> dev4:~$ ps aux | grep rsync
> root     25272  8.0  0.0  15472  2404 ?        Ds   16:46   0:00
> /usr/bin/rsync --server --sender --numeric-ids --perms --owner --group
> -D --links --hard-links --times --block-size=2048 --recursive
> --one-file-system --no-compress --ignore-times . /srv/

Rsync doesn't put the exclude list on the comand line (unless you add
some explicitly as argurments).  Look at the xferlog for the backup to
see what excludes were sent.

-- 
  Les Mikesell
lesmikes...@gmail.com

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] BackupFilesExclude not working as expected

2012-06-06 Thread Aaron Cossey
On Wed, Jun 6, 2012 at 4:30 PM, Adam Goryachev
 wrote:
> On 07/06/12 00:22, Aaron Cossey wrote:
>> On Tue, Jun 5, 2012 at 6:50 PM, Bowie Bailey  wrote:
>>> On 6/5/2012 5:41 AM, Aaron Cossey wrote:
 Hello,

 OS: Debian 6
 Backuppc: version 3.1.0

 I have a host configured with XferMethod = rsync . The backup works
 but I noticed that the BackupFilesExclude which I have configured are
 not being used.
>>> The syntax of BackupFilesExclude is frequently confusing to new users.
>>> Show us what yours actually looks like and we'll fix it for you if needed.
>>>
>>> --
>>> Bowie
>>>
>> Thank you Bowie.
>>
>> This is the specific config for the host:
>>
>> $Conf{BackupFilesExclude} = {
>>   '/' => [
>>     'www/vhosts/2Burn',
>>     'www/vhosts/preview* ',
>>     'www/vhosts/www*',
>>     'www/vhosts/adrdb*',
>>     'www/vhosts/db_dumps_for_backup'
>>   ],
>> };
>> $Conf{BackupFilesOnly} = {
>>   '/' => [
>>     '/srv'
>>   ]
>> };
> This is ignored since the key "/" does not match the RsyncShareName
> "/srv", in any case I would advise to delete it anyway as it is not needed.
>
>> $Conf{ClientNameAlias} = 'dev4';
>> $Conf{RsyncClientCmd} = '$sshPath -q -x -l root $host $rsyncPath $argList+';
>> $Conf{RsyncClientRestoreCmd} = '$sshPath -q -x -l root $host
>> $rsyncPath $argList+';
>> $Conf{RsyncShareName} = [
>>   '/srv'
>> ];
>>
>> -Basically I want to get everything under /srv except
>> /srv/www/vhosts/2Burn
>> /srv/www/vhosts/preview*
>> /srv/www/vhosts/www*
>> /srv/www/vhosts/adrdb*
>> /srv/www/vhosts/db_dumps_for_backup
>
> Try these:
>
> $Conf{RsyncShareName} = [
>  '/srv'
> ];
>
> # This will only backup files under /srv, so no need to set
> backupfilesonly
>
> $Conf{BackupFilesExclude} = {
>  '/srv' => [
>    'www/vhosts/2Burn',
>    'www/vhosts/preview* ',
>    'www/vhosts/www*',
>    'www/vhosts/adrdb*',
>    'www/vhosts/db_dumps_for_backup'
>  ],
> };
>
> # The key must match the sharename "/srv"
>
> Let us know if this still doesn't do what you would like.
>
> Regards,
> Adam
>

Thanks Adam, I changed my config to the following:

$Conf{RsyncShareName} = [
  '/srv'
];
$Conf{BackupFilesExclude} = {
  '/srv' => [
'www/vhosts/2Burn',
'www/vhosts/preview*',
'www/vhosts/www*',
'www/vhosts/adrdb*',
'www/vhosts/db_dumps_for_backup'
  ]
};
$Conf{ClientNameAlias} = 'dev4';
$Conf{RsyncClientCmd} = '$sshPath -q -x -l root $host $rsyncPath $argList+';
$Conf{RsyncClientRestoreCmd} = '$sshPath -q -x -l root $host
$rsyncPath $argList+';

But when check to see what's running, this is what I see happening:

dev4:~$ ps aux | grep rsync
root 25272  8.0  0.0  15472  2404 ?Ds   16:46   0:00
/usr/bin/rsync --server --sender --numeric-ids --perms --owner --group
-D --links --hard-links --times --block-size=2048 --recursive
--one-file-system --no-compress --ignore-times . /srv/

--Aaron

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] BackupFilesExclude not working as expected

2012-06-06 Thread Adam Goryachev
On 07/06/12 00:22, Aaron Cossey wrote:
> On Tue, Jun 5, 2012 at 6:50 PM, Bowie Bailey  wrote:
>> On 6/5/2012 5:41 AM, Aaron Cossey wrote:
>>> Hello,
>>>
>>> OS: Debian 6
>>> Backuppc: version 3.1.0
>>>
>>> I have a host configured with XferMethod = rsync . The backup works
>>> but I noticed that the BackupFilesExclude which I have configured are
>>> not being used.
>> The syntax of BackupFilesExclude is frequently confusing to new users.
>> Show us what yours actually looks like and we'll fix it for you if needed.
>>
>> --
>> Bowie
>>
> Thank you Bowie.
>
> This is the specific config for the host:
>
> $Conf{BackupFilesExclude} = {
>   '/' => [
> 'www/vhosts/2Burn',
> 'www/vhosts/preview* ',
> 'www/vhosts/www*',
> 'www/vhosts/adrdb*',
> 'www/vhosts/db_dumps_for_backup'
>   ],
> };
> $Conf{BackupFilesOnly} = {
>   '/' => [
> '/srv'
>   ]
> };
This is ignored since the key "/" does not match the RsyncShareName
"/srv", in any case I would advise to delete it anyway as it is not needed.

> $Conf{ClientNameAlias} = 'dev4';
> $Conf{RsyncClientCmd} = '$sshPath -q -x -l root $host $rsyncPath $argList+';
> $Conf{RsyncClientRestoreCmd} = '$sshPath -q -x -l root $host
> $rsyncPath $argList+';
> $Conf{RsyncShareName} = [
>   '/srv'
> ];
>
> -Basically I want to get everything under /srv except
> /srv/www/vhosts/2Burn
> /srv/www/vhosts/preview*
> /srv/www/vhosts/www*
> /srv/www/vhosts/adrdb*
> /srv/www/vhosts/db_dumps_for_backup

Try these:

$Conf{RsyncShareName} = [
  '/srv'
];

# This will only backup files under /srv, so no need to set
backupfilesonly

$Conf{BackupFilesExclude} = {
  '/srv' => [
'www/vhosts/2Burn',
'www/vhosts/preview* ',
'www/vhosts/www*',
'www/vhosts/adrdb*',
'www/vhosts/db_dumps_for_backup'
  ],
};

# The key must match the sharename "/srv"

Let us know if this still doesn't do what you would like.

Regards,
Adam

-- 
Adam Goryachev
Website Managers
www.websitemanagers.com.au


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] BackupFilesExclude not working as expected

2012-06-06 Thread Aaron Cossey
On Tue, Jun 5, 2012 at 6:50 PM, Bowie Bailey  wrote:
> On 6/5/2012 5:41 AM, Aaron Cossey wrote:
>> Hello,
>>
>> OS: Debian 6
>> Backuppc: version 3.1.0
>>
>> I have a host configured with XferMethod = rsync . The backup works
>> but I noticed that the BackupFilesExclude which I have configured are
>> not being used.
>
> The syntax of BackupFilesExclude is frequently confusing to new users.
> Show us what yours actually looks like and we'll fix it for you if needed.
>
> --
> Bowie
>

Thank you Bowie.

This is the specific config for the host:

$Conf{BackupFilesExclude} = {
  '/' => [
'www/vhosts/2Burn',
'www/vhosts/preview* ',
'www/vhosts/www*',
'www/vhosts/adrdb*',
'www/vhosts/db_dumps_for_backup'
  ],
};
$Conf{BackupFilesOnly} = {
  '/' => [
'/srv'
  ]
};
$Conf{ClientNameAlias} = 'dev4';
$Conf{RsyncClientCmd} = '$sshPath -q -x -l root $host $rsyncPath $argList+';
$Conf{RsyncClientRestoreCmd} = '$sshPath -q -x -l root $host
$rsyncPath $argList+';
$Conf{RsyncShareName} = [
  '/srv'
];

-Basically I want to get everything under /srv except
/srv/www/vhosts/2Burn
/srv/www/vhosts/preview*
/srv/www/vhosts/www*
/srv/www/vhosts/adrdb*
/srv/www/vhosts/db_dumps_for_backup

--Aaron

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] BackupFilesExclude not working as expected

2012-06-05 Thread Bowie Bailey
On 6/5/2012 5:41 AM, Aaron Cossey wrote:
> Hello,
>
> OS: Debian 6
> Backuppc: version 3.1.0
>
> I have a host configured with XferMethod = rsync . The backup works
> but I noticed that the BackupFilesExclude which I have configured are
> not being used.

The syntax of BackupFilesExclude is frequently confusing to new users. 
Show us what yours actually looks like and we'll fix it for you if needed.

-- 
Bowie

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] BackupFilesExclude not working as expected

2012-06-05 Thread Aaron Cossey
Hello,

OS: Debian 6
Backuppc: version 3.1.0

I have a host configured with XferMethod = rsync . The backup works
but I noticed that the BackupFilesExclude which I have configured are
not being used.

When I examine the running rsync command using ps aux | grep rsync ,
there are no files being excluded, i.e. no --exclude= on the command
line being executed.

Is there a way I can log what $argList is being expanded to at runtime?


Regards,
Aaron Cossey

aaron.cos...@gmail.com

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] BackupFilesExclude

2012-05-14 Thread Rudolf E. Steiner
Hi.

I use BackupPC for a few years and it works great.

But now, I have a strange problem:

I have added "/home/res/ownCloud" to my "BackupFilesExclude"-list but 
BackupPC still processing it.

For example, I have also "/dev", "/proc", "/sys" or "/var/lib/mysql" in 
the "BackupFilesExclude"-list and BackupPC did not save this folders 
(just as it should be).

I use "BackupPC 3.1.0".

-- 
Rudolf E. Steiner
re...@communicate.at

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] BackupFilesExclude syntax (was: Re: Yet another filesystem thread)

2011-07-03 Thread Holger Parplies
Hi,

Jeffrey J. Kosowsky wrote on 2011-07-03 20:18:07 -0400 [Re: [BackupPC-users] 
Yet another filesystem thread]:
> Holger Parplies wrote at about 19:31:14 +0200 on Sunday, July 3, 2011:
>  > While the comments in config.pl state
>  > 
>  > # This can be set to a string, an array of strings, or, in the case
>  > # of multiple shares, a hash of strings or arrays.
>  > 
>  > that is actually incorrect. A hash of strings makes no sense. In fact, Perl
>  > would turn your example into a hash with "/proc" and "/pub" as keys and
>  > "/blaat" and "/tmp" as respective values - certainly not what you want.
>  > [...]
> 
> I think by hash of strings, the following is meant:
> $Conf {BackupFilesExclude} = { 'share1' => 'exclude-path1',
>'share2' => 'exclude-path2',
> ...
>  }
> 
> This is just a simpler case of the hash of arrays that you illustrate
> below.

in fact, it's the same as what I meant to illustrate above, and in fact, it's
wrong.

Rereading the code for BackupPC::Lib::backupFileConfFix yet again, I'm quite
sure it doesn't do anything meaningful for a "hash of strings". For the case
of BackupFiles{Exclude,Only} already being a hash, the values are, in fact,
*not* promoted to arrays if they are scalars. Later on (at least in
Xfer::Rsync - I didn't check the other XferMethods), they are used as array
refs:

foreach my $file ( @{$conf->{BackupFilesExclude}{$t->{shareName}}} )

In absense of 'strict refs', this appears to yield an empty array, which is
preferable to a syntax error, but effectively (and silently) behaves as if
the excludes (or includes) were not specified at all. So, yes, you *can*
specify a hash of strings, but, no, they won't be used as excludes (or
includes).

Before we get into a discussion whether this should be "fixed", and because I
had already written this before I realized that it doesn't currently work this
way:

The point is that it's not "a hash of strings", it's "a hash of key-value
pairs". "A hash of strings" suggests just what the original poster understood:
several strings of the same meaning, excludes probably. I was first going to
say that it's actually a string of share names (with empty exclude lists,
which makes no sense), when I realized that that's not true. Unless you write
it with "=>" (which, in Perl, is simply a synonym for ","), it's anything but
obvious. Perl won't mind if you write

$Conf {BackupFilesExclude} = { 'share1',
   'exclude-path1' => 'share2',
   'exclude-path2', ...
 };

but it's misleading, just as it is with commas only. The interpretation is
"key-value pairs", so it should be stated explicitly that that's what you
[would] need to supply.

I wonder if the case of only a single exclude pattern per share for all shares
is common enough to warrant advocating its usage [or rather implementing it].
Of course, a mixed usage [would then] also work:

$Conf {BackupFilesExclude} = { 'share1' => 'exclude1',
   'share2' => [ 'exclude2a', 'exclude2b' ],
   'share3' => 'exclude3',
 };

But who would write that or encourage others to do so? What's the point in
leaving out the '[]' here? Allowing one single array of excludes to apply to
all shares (array value) makes sense, and extending that to allow one single
exclude pattern to apply to all shares (scalar value) also. Both are
simplifications for people not familiar with Perl syntax. Allowing a single
hash of strings would not be a simplification (in my opinion, at least).
Well, your opinion may vary ;-).

> While I have not tried that syntax, I imagine that is what the
> documentation refers to.

I haven't tried it either, obviously.

> Of course, the wording is not terribly clear except maybe to those who
> already know what is going on (and understand perl)...

Well, it would seem to confuse even those ;-).

Either the wording or the implementation needs to be changed. My suggestion is
to change the documentation to:

# This can be set to a string, an array of strings, or, in the case
# of multiple shares, a hash of (string, array) pairs.

I can't see the need for supporting a "hash of strings" variant.

Regards,
Holger

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of 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-d2d-c2
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:htt

Re: [BackupPC-users] BackupFilesExclude and BackupFilesOnly Not Working

2009-04-21 Thread Holger Parplies
Hi,

John Aranibar wrote on 2009-04-20 09:14:31 -0600 [Re: [BackupPC-users] 
BackupFilesExclude and BackupFilesOnly Not Working]:
> 
> I must be doing something wrong here, because, [BackupFilesOnly] still not 
> working. 
> [...]
> $Conf{BackupFilesOnly} = {
>   'C$' => ['\\Documents and Settings\\Administrator.SCORE\\Local 
> Settings\\Application Data\\Microsoft\\Outlook]
> };

and if you add the missing single quote? I'm a bit surprised that a backup
would proceed if the host config file contains a Perl syntax error ... from
the code I wouldn't expect it to. Either you misquoted your config file or
you and BackupPC are looking at different files.

Aside from that, you should be quoting your XferLOG. It usually gives
invaluable information about what is going wrong.

> $Conf{SmbShareUserName} = 'score//administrator';

Is that correct with two slashes?

Regards,
Holger

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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] BackupFilesExclude and BackupFilesOnly Not Working

2009-04-20 Thread John Aranibar

I must be doing something wrong here, because, [BackupFilesOnly] still not 
working. 

It backups up the entire C: Drive.

 

What I found interesting is that on another server running ubuntu 7.10 also and 
backuppc everything works fine.


The only diference is that on the server that works I am running Windows 2003 
Server not the Small Business Server.

 

There is another diference with win2003 SBS if you use "Administrator" it doest 
work, you must use "administrator" that is how you get the "...No files dumped 
for share ..."

 

Anyways I would apreciate if you guys can help me. Backup ups are very 
important.
Here is my john.pl file.

 

Thank you all

 

##Backup MS Outlook only
##-

$Conf{SmbShareName} = [
  'C$'
];
$Conf{BackupFilesOnly} = {
  'C$' => ['\\Documents and Settings\\Administrator.SCORE\\Local 
Settings\\Application Data\\Microsoft\\Outlook]
};

##Connection Settings
##-
$Conf{SmbShareUserName} = 'score//administrator';
$Conf{SmbSharePasswd} = 'mypass';
$Conf{XferMethod} = 'smb';

 

##-> END <

 

 

>>Once again the 'c' should be 'C$'.

>>Unfortunately smbclient doesn't allow you to use both
>>$Conf{BackupFilesOnly} and $Conf{BackupFilesExclude}. One choice
>>is to change the share to be just the directory tree you want to
>>back up and leave $Conf{BackupFilesOnly} empty.

>>Using wildcards in $Conf{BackupFilesExclude} with smbclient is ok,
>>but you need to use '\' instead of '/':

>>$Conf{BackupFilesExclude} = {
>>'C$' => ['\\Program Files\\*', '\\WINDOWS\\*'],
>>'C$' => ['\\Documents and Settings\\*'],
>>};

>>(If you are entering this via the CGI interface you only need
>>to enter a single '\'.)

>>Craig 


_
Experience all of the new features, and Reconnect with your life.
http://go.microsoft.com/?linkid=9650730--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
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] BackupFilesExclude and BackupFilesOnly Not W orking

2009-04-16 Thread Bowie Bailey
John Aranibar wrote:
> Good Morning All
> 
> I have installed backuppc latest version on my ubuntu 7.10 Server.
> I am using it to backup WinXP workstations that are on a Win2003
> Small Bussines Server. 
> The problem is that it is backuping up the ws's entiry C Driver,
> ratter than a particular Directory. 
> $Conf{SmbShareName} = [
>   'C$'
> ];
> 
> Here is my workstation.pl (showing all)
> 
> #FILES TO BACKUP
> #-
> $Conf{BackupFilesOnly} = {
>   'c' => ['/MS_OUTLOOK/*'],
> };
> 
> #FILES TO EXCLUDE
> #-
> $Conf{BackupFilesExclude} = {
>'c' => ['/Program Files/*', '/WINDOWS/*'],
>'c' => ['/Documents and Settings/*'],
> };

Your share names are not matching up.  It should look like this:

$Conf{BackupFilesOnly} = {
  'C$' => ['/MS_OUTLOOK/*'],
};

-- 
Bowie

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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] BackupFilesExclude and BackupFilesOnly Not Working

2009-04-16 Thread Craig Barratt
John writes:

> $Conf{SmbShareName} = [
  > 'C$'
> ];

> #FILES TO BACKUP
> #-
> $Conf{BackupFilesOnly} = {
>   'c' => ['/MS_OUTLOOK/*'],
> };

First, the 'c' should be 'C$' - it should match the share name.
Also, you can't use wildcards in $Conf{BackupFilesOnly}.  You
need to use an absolute path.

> #FILES TO EXCLUDE
> #-
> $Conf{BackupFilesExclude} = {
>'c' => ['/Program Files/*', '/WINDOWS/*'],
>'c' => ['/Documents and Settings/*'],
> };

Once again the 'c' should be 'C$'.

Unfortunately smbclient doesn't allow you to use both
$Conf{BackupFilesOnly} and $Conf{BackupFilesExclude}. One choice
is to change the share to be just the directory tree you want to
back up and leave $Conf{BackupFilesOnly} empty.

Using wildcards in $Conf{BackupFilesExclude} with smbclient is ok,
but you need to use '\' instead of '/':

 $Conf{BackupFilesExclude} = {
'C$' => ['\\Program Files\\*', '\\WINDOWS\\*'],
'C$' => ['\\Documents and Settings\\*'],
 };

(If you are entering this via the CGI interface you only need
to enter a single '\'.)

Craig

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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] BackupFilesExclude and BackupFilesOnly Not Working

2009-04-16 Thread John Aranibar

Good Morning All

 

I have installed backuppc latest version on my ubuntu 7.10 Server.
I am using it to backup WinXP workstations that are on a Win2003 Small Bussines 
Server.

The problem is that it is backuping up the ws's entiry C Driver, ratter than a 
particular Directory.

 

Here is my config.pl (I am only showing what i changed)

 

$Conf{SmbShareUserName} = 'administrator';
$Conf{SmbSharePasswd} = 'mypass';
$Conf{SmbShareName} = [
  'C$'
];

 

Here is my workstation.pl (showing all)

 

#FILES TO BACKUP
#-

$Conf{BackupFilesOnly} = {
  'c' => ['/MS_OUTLOOK/*'],
};


#FILES TO EXCLUDE
#-

$Conf{BackupFilesExclude} = {
   'c' => ['/Program Files/*', '/WINDOWS/*'],
   'c' => ['/Documents and Settings/*'],
};

$Conf{SmbShareUserName} = 'score//administrator';
$Conf{SmbSharePasswd} = 'mypass';
$Conf{XferMethod} = 'smb';

 

I need to know what I am doing wrong.

 

Thank you,

 

Bre-x

_
Create a cool, new character for your Windows Live™ Messenger.
http://go.microsoft.com/?linkid=9656621--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
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] BackupFilesExclude not working properly (for me) with Windows/rsyncd

2008-10-27 Thread Jeffrey J. Kosowsky
Craig Barratt wrote at about 22:59:19 -0700 on Monday, October 27, 2008:
 > Jeffrey writes:
 > 
 > > I have:
 > > $Conf{BackupFilesExclude} = [
 > > '"/Documents and Settings/*/LocalSettings/Temp/*"',
 > > [snip]
 > 
 > You have two sets of quotes here, so this is excluding this path:
Thanks - I knew it would be something simple.
I guess I was thinking that you needed another pair to catch the space
in Windows filenames (probably been doing too much Bash scripting
lately with its multiple layers of escaped sequences)...

Not sure why I assumed that though... Doh

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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] BackupFilesExclude not working properly (for me) with Windows/rsyncd

2008-10-27 Thread Craig Barratt
Jeffrey writes:

> I have:
> $Conf{BackupFilesExclude} = [
> '"/Documents and Settings/*/LocalSettings/Temp/*"',
> [snip]

You have two sets of quotes here, so this is excluding this path:

"/Documents and Settings/*/LocalSettings/Temp/*"

instead of

/Documents and Settings/*/LocalSettings/Temp/*

I suspect you entered this into the CGI interface:

"/Documents and Settings/*/LocalSettings/Temp/*"

You should remove the inner sets of quotes.

Craig

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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] BackupFilesExclude not working properly (for me) with Windows/rsyncd

2008-10-27 Thread Jeffrey J. Kosowsky
I have:
$Conf{BackupFilesExclude} = [
'"/Documents and Settings/*/LocalSettings/Temp/*"',
'"/Documents and Settings/*/Local Settings/Temporary Internet Files/*"',
'"/Documents and Settings/*/Local Settings/Application 
Data/Microsoft/Windows/UsrClass.dat"',
'"/Documents and Settings/*/Local Settings/Application 
Data/Microsoft/Windows/UsrClass.dat.LOG"',
'"/Documents and Settings/*/NTUSER.DAT"', '"/Documents and 
Settings/*/NTUSER.DAT.LOG"',
'"/Documents and Settings/*/Local Settings/Application 
Data/Mozilla/Firefox/Profiles/*/parent.lock"',
'"/Documents and Settings/*/Local 
Settings/ApplicationData/Mozilla/Firefox/Profiles/*/Cache/*"',
'/WINDOWS/system32/config/systempprofile/NTUSER.DAT',
'/WINDOWS/system32/config/systempprofile/NTUSER.DAT.LOG',
'/WINDOWS/system32/spool/PRINTERS/*',
'"/System Volume Information"',
'/pagefile.sys', '/hiberfil.sys', '/RECYCLER', ];

And the log file seems to agree that these are set:

Sent exclude: "/Documents and Settings/*/Local Settings/Temp/*"
Sent exclude: "/Documents and Settings/*/Local Settings/Temporary Internet 
Files/*"
Sent exclude: "/Documents and Settings/*/Local Settings/Application 
Data/Microsoft/Windows/UsrClass.dat"
Sent exclude: "/Documents and Settings/*/Local Settings/Application 
Data/Microsoft/Windows/UsrClass.dat.LOG"
Sent exclude: "/Documents and Settings/*/NTUSER.DAT"
Sent exclude: "/Documents and Settings/*/NTUSER.DAT.LOG"
Sent exclude: "/Documents and Settings/*/Local Settings/Application 
Data/Mozilla/Firefox/Profiles/*/parent.lock"
Sent exclude: "/Documents and Settings/*/Local Settings/Application 
Data/Mozilla/Firefox/Profiles/*/Cache/*"
Sent exclude: /WINDOWS/system32/config/systempprofile/NTUSER.DAT
Sent exclude: /WINDOWS/system32/config/systempprofile/NTUSER.DAT.LOG
Sent exclude: /WINDOWS/system32/spool/PRINTERS/*
Sent exclude: "/System Volume Information"
Sent exclude: /pagefile.sys
Sent exclude: /hiberfil.sys
Sent exclude: /RECYCLER

Yet, the log files have hundreds of errors of form:
Remote[1]: rsync: readlink_stat("Documents and Settings/family/Local 
Settings/Temporary Internet 
Files/Content.IE5/1QTGDQG5/-adj%7Cmtype-standard%7C!category-float%7C!category-pop%7C!category-video%7C!category-expand%7C!category-pointroll%7Csz-300x250%7Ctile-2%7C;ord=544854089316896[1]"
 (in c)) failed: File name too long (91)

OR:
Remote[1]: rsync: send_files failed to open "Documents and 
Settings/LocalService/Local Settings/Application 
Data/Microsoft/Windows/UsrClass.dat" (in c): Device or resource busy (16)
Remote[1]: rsync: send_files failed to open "Documents and 
Settings/LocalService/Local Settings/Application 
Data/Microsoft/Windows/UsrClass.dat.LOG" (in c): Device or resource busy (16)

etc...

On the other hand if I manually run 'rsyncd' from the command line
with the same exclude statements, it does indeed skip those files.

Am I missing something obvious or is BackupPC messing up here?
Thanks




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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] BackupFilesExclude strips trailing / on patterns for rsync

2008-10-08 Thread John Rouillard
On Thu, Oct 09, 2008 at 04:07:48AM +0200, Holger Parplies wrote:
> John Rouillard wrote on 2008-10-08 20:06:21 + [[BackupPC-users]
> BackupFilesExclude strips trailing / on patterns for rsync]: 
> > [...]
> > I have set up a rule like this to eliminate many gigbaytes of files
> > with the following config file entries:
> > 
> >   $Conf {BackupFilesExclude} =
> >...,
> >'/home/yum' => [
> > [...]
> >"- **/.svn/",
> > [...]
> >"+ */",
> > [...]
> >  ],
> >   };
> > 
> > After starting and stopping a full backup after 5 minutes I saw
> > (annotated with @ signs):
> > 
> > [...]
> > @  Sent exclude: **/.svn
> > [...]
> > @  Sent include: *
> > 
> > Note the lines marked with @'s. It looks like the trailing /'s from
> > the exclude list for those items is being removed ( "= **/.svn/" is
> > sent as "**/.svn" and "+ */" is sent as "*"). The trailing / is
> > supposed to force these patterns to be interpreted only for
> > directories.
> > 
> > So is this doing the right thing, and the message:
> > 
> >   Sent include: *
> > 
> > should really read:
> > 
> >   Sent include directories only: *
> > 
> > Or am I going to get a huge backup of everything?
> 
> I must admit that I haven't tried it out. I haven't got time for more than a
> quick glance at the source, but in File::RsyncP 0.64, FileList/exclude.c
> function make_exclude I see
> 
> if (pat_len > 1 && ret->pattern[pat_len-1] == '/') {
> ret->pattern[pat_len-1] = 0;
> mflags |= MATCHFLG_DIRECTORY;
> }
> 
> Without fully understanding the code right now, this seems to mean that the
> trailing / is stored as a flag and deleted from the pattern (which is later
> output), so I would *guess* that it is, in fact, doing the right thing
> (actually, this is consistent with a grep over the last months' mailing list
> e-mails which mention not a single "Sent exclude" log line listed with a path
> with a trailing slash). You might want to try it out with a smaller amount of
> data (maybe backup /tmp with "+ */", "- *" and see if it contains any files)
> or simply abort the backup if you find that it transfers files it should not.

Thanks for looking into this. I agree from my read through of the
code.

Also after 6 hours the backup completed and seems to have worked as
desired.

So the logged output is just misleading. Probably need a bug request
filed. Does backupc have a bug/feature tracker at sourceforge.net? Not
finding a link to it at the moment.

> > Also I had to stop the backup to see any output at all on the
> > XferLOG.z. This is really annoying, is there some flag that can be
> > turned on to get it to flush after every output line?
> 
> I don't believe there is, probably due to the way compression is implemented.

Yeah, I sort of figured it was something like that. Probably waiting
to output the first block of the compressed file with the
dictionary. Maybe a feature request to output the XferLOG as a normal
file and then compress it when the backup is completed is a useful
feature.
 
-- 
-- rouilj

John Rouillard
System Administrator
Renesys Corporation
603-244-9084 (cell)
603-643-9300 x 111

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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] BackupFilesExclude strips trailing / on patterns for rsync

2008-10-08 Thread Holger Parplies
Hi,

John Rouillard wrote on 2008-10-08 20:06:21 + [[BackupPC-users] 
BackupFilesExclude strips trailing / on patterns for rsync]:
> [...]
> I have set up a rule like this to eliminate many gigbaytes of files
> with the following config file entries:
> 
>   $Conf {BackupFilesExclude} =
>...,
>'/home/yum' => [
> [...]
>"- **/.svn/",
> [...]
>"+ */",
> [...]
>  ],
>   };
> 
> After starting and stopping a full backup after 5 minutes I saw
> (annotated with @ signs):
> 
> [...]
> @  Sent exclude: **/.svn
> [...]
> @  Sent include: *
> 
> Note the lines marked with @'s. It looks like the trailing /'s from
> the exclude list for those items is being removed ( "= **/.svn/" is
> sent as "**/.svn" and "+ */" is sent as "*"). The trailing / is
> supposed to force these patterns to be interpreted only for
> directories.
> 
> So is this doing the right thing, and the message:
> 
>   Sent include: *
> 
> should really read:
> 
>   Sent include directories only: *
> 
> Or am I going to get a huge backup of everything?

I must admit that I haven't tried it out. I haven't got time for more than a
quick glance at the source, but in File::RsyncP 0.64, FileList/exclude.c
function make_exclude I see

if (pat_len > 1 && ret->pattern[pat_len-1] == '/') {
ret->pattern[pat_len-1] = 0;
mflags |= MATCHFLG_DIRECTORY;
}

Without fully understanding the code right now, this seems to mean that the
trailing / is stored as a flag and deleted from the pattern (which is later
output), so I would *guess* that it is, in fact, doing the right thing
(actually, this is consistent with a grep over the last months' mailing list
e-mails which mention not a single "Sent exclude" log line listed with a path
with a trailing slash). You might want to try it out with a smaller amount of
data (maybe backup /tmp with "+ */", "- *" and see if it contains any files)
or simply abort the backup if you find that it transfers files it should not.

> Also I had to stop the backup to see any output at all on the
> XferLOG.z. This is really annoying, is there some flag that can be
> turned on to get it to flush after every output line?

I don't believe there is, probably due to the way compression is implemented.

> (As a side note, I guess this is somewhat expected since it is named
> "BackupFilesExclude" not not BackupPatternsExclude or
> BackupPathsExclude, but I still claim it's broke.)

If it really proves to disrespect the trailing slash, I agree.

Regards,
Holger

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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] BackupFilesExclude strips trailing / on patterns for rsync

2008-10-08 Thread John Rouillard
Hi Folks:

On Sat, Aug 23, 2008 at 02:45:42AM +0200, Holger Parplies wrote:
> I would implement this like BackupPC does, though it's
> perhaps not intuitive :-). If you are using rsync(d), that is. It won't work
> with tar or smb.
> 
> $Conf {BackupFilesExclude} =
>   [ '/proc', '/sys', '/mnt',
> '+ /opt/zimbra', '/opt/*',
> '+ /opt/zimbra/backup', '/opt/zimbra/*' ];
> 
> The trick is that all of BackupFilesExclude gets passed to rsync as
> '--exclude=/...' arguments. Rsync treats '--exclude=+ /something' as an
> include. Thus you're including /opt/zimbra, excluding the rest of /opt, and
> likewise including /opt/zimbra/backup and excluding the rest of /opt/zimbra.
> That should get you what you want. For a better explanation see
> BackupPC::Xfer::Rsync, lines 156 and following.
> 
> Note that the order matters: '+ /opt/zimbra' needs to be before '/opt/*' and
> likewise for '.../backup'. If it feels more comprehensible, you may change
> '/opt/*' to '- /opt/*' (and likewise for other excludes). You need a single
> space character between +/- and the path.

I have set up a rule like this to eliminate many gigbaytes of files
with the following config file entries:

  $Conf {BackupFilesExclude} =
   ...,
   '/home/yum' => [
   "+ /bin/**",
   "+ /SRPMS/**",
   "+ /install/kickstart/**",
   "+ /solaris_software/**",
   "- **/.svn/",
   "- /repository/**/core/**",
   "- /repository/**/core.orig/**",
   "- /repository/**/updates/",
   "- /repository/**/updates-test/**",
   "- /repository/**/babbledog*/**",
   "- /repository/**/monkeyowl-dev/**",
   "+ /repository/**/RPMS/**.rpm",
   "+ */",
   "- *",
 ],
  };

After starting and stopping a full backup after 5 minutes I saw
(annotated with @ signs):

  Sent include: /bin/**
  Sent include: /SRPMS/**
  Sent include: /install/kickstart/**
  Sent include: /solaris_software/**
@  Sent exclude: **/.svn
  Sent exclude: /repository/**/core/**
  Sent exclude: /repository/**/core.orig/**
  Sent exclude: /repository/**/updates
  Sent exclude: /repository/**/updates-test/**
  Sent exclude: /repository/**/babbledog*/**
  Sent exclude: /repository/**/monkeyowl-dev/**
  Sent include: /repository/**/RPMS/**.rpm
@  Sent include: *
  Sent exclude: *

Note the lines marked with @'s. It looks like the trailing /'s from
the exclude list for those items is being removed ( "= **/.svn/" is
sent as "**/.svn" and "+ */" is sent as "*"). The trailing / is
supposed to force these patterns to be interpreted only for
directories.

So is this doing the right thing, and the message:

  Sent include: *

should really read:

  Sent include directories only: *

Or am I going to get a huge backup of everything?

I looked in RsyncP.pm to try to get some insight to what's happening
there and it looks like the exclude list is munged by the time it
arrives, so I think I am going to get a huge backup.

Anybody got a fix/idea on how to solve this?

Also I had to stop the backup to see any output at all on the
XferLOG.z. This is really annoying, is there some flag that can be
turned on to get it to flush after every output line?

(As a side note, I guess this is somewhat expected since it is named
"BackupFilesExclude" not not BackupPatternsExclude or
BackupPathsExclude, but I still claim it's broke.)

-- 
-- rouilj

John Rouillard
System Administrator
Renesys Corporation
603-244-9084 (cell)
603-643-9300 x 111

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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] BackupFilesExclude via smb for Windows Shares - SOLVED

2008-06-27 Thread Denyerec

It was a combination of having to use \  rather than /  (As well as \\ on 
smbclient to check shares, and  for the network name prefix), as well as 
manually editing the windows security permissions on the folder to ensure the 
permissions were inherited by all children.

Also note that a windows account cannot be set to "Do not allow shell login" as 
it were, or /bin/null.
No, you cannot stop an account actually logging in to windows itself and 
executing programs, not that I can find anyway. Silly if you ask me.

That means with the password stored in plaintext in the backupPC config, 
someone need only compromise *that* and they can get full access to my system 
rather than just the backup shares. A situation I am not happy with and am 
searching for a solution for.

+--
|This was sent by [EMAIL PROTECTED] via Backup Central.
|Forward SPAM to [EMAIL PROTECTED]
+--



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] BackupFilesExclude via smb for Windows Shares - SOLVED

2008-06-27 Thread Denyerec

This is an edited version of a previous post


Hi there,

I've been struggling to get a full backup working with BackupFilesExclude on 
windows.  I have a couple of directories in a couple of shares that I don't 
need/want backed up (Cache and temp directories, as well as transient 
downloads.)

So far, I have only been able to exclude a directory by using the following 
config:


$Conf{SmbShareName} = [
  '_downloads'
];
$Conf{BackupFilesExclude} = {
  '*' => [
    '?Temp'
  ]
};
$Conf{SmbSharePasswd} = '***';
$Conf{SmbShareUserName} = 'dennet';


I had previously tried the following config as a precursor to adding more 
excluded directories, but it copied the "excluded" folders anyway! :


$Conf{SmbShareName} = [
  '_downloads'
];
$Conf{BackupFilesExclude} = {
  '_downloads' => [
    '/Temp'
  ]
};
$Conf{SmbSharePasswd} = '***';
$Conf{SmbShareUserName} = 'dennet';



Is it perhaps something to do with the slash directions on windows? I read a 
blog post somewhere saying that only one exclusion per config was possible when 
backing up from windows, but wasn't sure if this was a limitation of an older 
version.

I need to be able to specify multiple exclusions in multiple shares, so any 
direction on this matter would be gretly appreciated.

I'm running on Ubuntu 7.10, with the latest version of BackupPC from their 
repository.

Kind regards,
Denyer

+--
|This was sent by [EMAIL PROTECTED] via Backup Central.
|Forward SPAM to [EMAIL PROTECTED]
+--



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] BackupFilesExclude via smb for Windows Shares - Problem

2008-06-26 Thread Denyerec

Anyone got any ideas on this one? I'm stumped :(

+--
|This was sent by [EMAIL PROTECTED] via Backup Central.
|Forward SPAM to [EMAIL PROTECTED]
+--



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] BackupFilesExclude via smb for Windows Shares - Problem

2008-06-23 Thread Denyerec

I had considered that, but when backuppc hit a file it didn't have read 
permission to, the backup job failled.

Perhaps that was because I'd botched the permissions? (I added the user to the 
security permissions and set DENY on all options)

I do not know if denial is "the way to do it". There is a specific area in 
backuppc for excluding files and directories, I just seem to be unable to get 
it to work in Windows shares :(

Any other thoughts?

+--
|This was sent by [EMAIL PROTECTED] via Backup Central.
|Forward SPAM to [EMAIL PROTECTED]
+--



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] BackupFilesExclude via smb for Windows Shares -Problem

2008-06-23 Thread Chris Baker

Perhaps, you could take away the permission on these directories and make
them inaccessable to backuppc? 


Chris Baker -- [EMAIL PROTECTED]
systems administrator
Intera Inc. -- 512-425-2006

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Denyerec
Sent: Monday, June 23, 2008 6:07 AM
To: backuppc-users@lists.sourceforge.net
Subject: [BackupPC-users] BackupFilesExclude via smb for Windows Shares
-Problem


Hi there,

I've been struggling to get a full backup working with BackupFilesExclude on
windows.  I have a couple of directories in a couple of shares that I don't
need/want backed up (Cache and temp directories, as well as transient
downloads.)

So far, I have only been able to exclude a directory by using the following
config:


$Conf{SmbShareName} = [
  '_downloads'
];
$Conf{BackupFilesExclude} = {   '*' => [  
  '?Temp'
  ]
};
$Conf{SmbSharePasswd} = '***';
$Conf{SmbShareUserName} = 'dennet';


I had previously tried the following config as a precursor to adding more
excluded directories, but it copied the "excluded" folders anyway! :


$Conf{SmbShareName} = [
  '_downloads'
];
$Conf{BackupFilesExclude} = {   '_downloads' => [
    '/Temp'
  ]
};
$Conf{SmbSharePasswd} = '***';
$Conf{SmbShareUserName} = 'dennet';



Is it perhaps something to do with the slash directions on windows? I read a
blog post somewhere saying that only one exclusion per config was possible
when backing up from windows, but wasn't sure if this was a limitation of an
older version.

I need to be able to specify multiple exclusions in multiple shares, so any
direction on this matter would be gretly appreciated.

I'm running on Ubuntu 7.10, with the latest version of BackupPC from their
repository.

Kind regards,
Denyer

+--
|This was sent by [EMAIL PROTECTED] via Backup Central.
|Forward SPAM to [EMAIL PROTECTED]
+--



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for just about anything Open
Source.
http://sourceforge.net/services/buy/index.php
___
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/



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] BackupFilesExclude via smb for Windows Shares - Problem

2008-06-23 Thread Denyerec

Easy on the thread hijack fellas... :)
 
Any advice on the initial post? (Backup exclusions on windows)

+--
|This was sent by [EMAIL PROTECTED] via Backup Central.
|Forward SPAM to [EMAIL PROTECTED]
+--



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] BackupFilesExclude via smb for Windows Shares - Problem

2008-06-23 Thread Denyerec

Hi there,

I've been struggling to get a full backup working with BackupFilesExclude on 
windows.  I have a couple of directories in a couple of shares that I don't 
need/want backed up (Cache and temp directories, as well as transient 
downloads.)

So far, I have only been able to exclude a directory by using the following 
config:


$Conf{SmbShareName} = [
  '_downloads'
];
$Conf{BackupFilesExclude} = {
  '*' => [
    '?Temp'
  ]
};
$Conf{SmbSharePasswd} = '***';
$Conf{SmbShareUserName} = 'dennet';


I had previously tried the following config as a precursor to adding more 
excluded directories, but it copied the "excluded" folders anyway! :


$Conf{SmbShareName} = [
  '_downloads'
];
$Conf{BackupFilesExclude} = {
  '_downloads' => [
    '/Temp'
  ]
};
$Conf{SmbSharePasswd} = '***';
$Conf{SmbShareUserName} = 'dennet';



Is it perhaps something to do with the slash directions on windows? I read a 
blog post somewhere saying that only one exclusion per config was possible when 
backing up from windows, but wasn't sure if this was a limitation of an older 
version.

I need to be able to specify multiple exclusions in multiple shares, so any 
direction on this matter would be gretly appreciated.

I'm running on Ubuntu 7.10, with the latest version of BackupPC from their 
repository.

Kind regards,
Denyer

+--
|This was sent by [EMAIL PROTECTED] via Backup Central.
|Forward SPAM to [EMAIL PROTECTED]
+--



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] BackupFilesExclude

2008-05-06 Thread Rob Owens


Lee A. Connell wrote:
> I see the option to exclude files from a backup in a particular share, 
> however it doesn’t seem to work.
> 
>  
> 
> I would like to exclude directories named “Temporary Internet Files” in 
> any path, not just the root.
> 
>  
> 
> So: c:\user\lee\temporary internet files
> 
> And: c:\my docs\temporary internet files
> 
>  
> 
> Would all get skipped no matter the root directory they reside in.  I 
> added BackupFilesExclude = [‘/Temporary Internet Files’];

rsync uses the '**' wildcard to do what you want.  I'm not sure if it 
works with other transfer methods, such as smb.

-Rob


The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. If you are not the addressee, any disclosure, reproduction,
copying, distribution, or other dissemination or use of this transmission in
error please notify the sender immediately and then delete this e-mail.
E-mail transmission cannot be guaranteed to be secure or error free as
information could be intercepted, corrupted lost, destroyed, arrive late or
incomplete, or contain viruses.
The sender therefore does not accept liability for any errors or omissions
in the contents of this message which arise as a result of e-mail
transmission. If verification is required please request a hard copy
version.


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] BackupFilesExclude

2008-05-06 Thread Les Stott
Lee A. Connell wrote:
>
> I see the option to exclude files from a backup in a particular share, 
> however it doesn’t seem to work.
>
> I would like to exclude directories named “Temporary Internet Files” 
> in any path, not just the root.
>
> So: c:\user\lee\temporary internet files
>
> And: c:\my docs\temporary internet files
>
> Would all get skipped no matter the root directory they reside in. I 
> added BackupFilesExclude = [‘/Temporary Internet Files’];
>
> But this didn’t seem to work. Any suggestions, I am using rsync for 
> transfer layer.
>
>
Excludes are relative to share names.

Not sure why you would have temporary internet files in non default 
paths.the below options will get all temporary internet files in all 
user profiles under the documents and settings tree.

i.e. if your rsync share is called "cdrive" and its path is defined as 
"c:" then your exclude would need to be

BackupFilesExclude = [‘/Documents and Settings/*/Local Setting/Temporary 
Internet Files’];

You may also want to include the Temp and History directories also.

BackupFilesExclude = [‘/Documents and Settings/*/Local 
Settings/Temporary Internet Files’, ‘/Documents and Settings/*/Local 
Settings/Temp’, , ‘/Documents and Settings/*/Local Settings/History’];

Regards,

Les




-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] BackupFilesExclude

2008-05-06 Thread Lee A. Connell
I see the option to exclude files from a backup in a particular share,
however it doesn't seem to work.

 

I would like to exclude directories named "Temporary Internet Files" in
any path, not just the root.

 

So: c:\user\lee\temporary internet files

And: c:\my docs\temporary internet files

 

Would all get skipped no matter the root directory they reside in.  I
added BackupFilesExclude = ['/Temporary Internet Files'];

 

But this didn't seem to work.  Any suggestions, I am using rsync for
transfer layer.

 

Lee Connell
Ammonoosuc Computer Services, Inc.
Network Engineer

15 Main St. Suite 10
Littleton, NH 03561
603-444-3937

If you require immediate response please send your inquiry to
[EMAIL PROTECTED]  

 

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
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] BackupFilesExclude doesn't run

2006-02-16 Thread Craig Barratt
Pierre Hourdebaigt writes:

> I am a new backuppc user (5 days ago). I use it to backup XP clients, 
> Fedora (FC4) and Mandriva (2006) clients. The server is on debian Sarge 3.1.
> I can backup and restore without problem.
> But I have noticed that 'BackupFilesExclude' parameter doesn't run for 
> my configuration. And I do not have message about it on log files.
> I do not see why this occurs. is anyone have an idea ?
> Thanks a lot.
> 
> Here the small config.pl for backuping a mandriva client :
> 
> $Conf{XferMethod} = 'rsync';
> $Conf{RsyncClientPath} = '/usr/bin/rsync';
> $Conf{RsyncClientCmd} = '$sshPath -q -x -l root $host $rsyncPath $argList+';
> $Conf{RsyncClientRestoreCmd} = '$sshPath -q -x -l root $host $rsyncPath 
> $argList
> +';
> $Conf{RsyncShareName} = [
> '/home/pierre',
> '/root/.ssh',
> '/devel',
> '/var/www/html',
> '/etc/samba'
> ];
> $Conf{BackupFilesExclude} = [
> '/home/pierre/download',
> '/home/pierre/tmp',
> '/home/pierre/OperaDownloads',
> '/home/pierre/.cddb',
> '/home/pierre/.swp',
> '/home/pierre/.fonts',
> '/home/pierre/.opera',
> '/home/pierre/.mozilla',
> '/home/pierre/.thumbnails',
> '/home/pierre/.xsession-errors'
> ];

The excludes are relative to the share name.

So you probably want this:

$Conf{BackupFilesExclude} = {
 '/home/pierre' => [
 '/download',
 '/tmp',
 '/OperaDownloads',
 '/.cddb',
 '/.swp',
 '/.fonts',
 '/.opera',
 '/.mozilla',
 '/.thumbnails',
 '/.xsession-errors'
]
};

I'm not sure the leading '/' is right for rsync, but if it
doesn't work then try a leading './' or omit it altogether.

Craig


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] BackupFilesExclude doesn't run

2006-02-15 Thread Pierre Hourdebaigt

Hi !
I am a new backuppc user (5 days ago). I use it to backup XP clients, 
Fedora (FC4) and Mandriva (2006) clients. The server is on debian Sarge 3.1.

I can backup and restore without problem.
But I have noticed that 'BackupFilesExclude' parameter doesn't run for 
my configuration. And I do not have message about it on log files.

I do not see why this occurs. is anyone have an idea ?
Thanks a lot.

Here the small config.pl for backuping a mandriva client :

$Conf{XferMethod} = 'rsync';
$Conf{RsyncClientPath} = '/usr/bin/rsync';
$Conf{RsyncClientCmd} = '$sshPath -q -x -l root $host $rsyncPath $argList+';
$Conf{RsyncClientRestoreCmd} = '$sshPath -q -x -l root $host $rsyncPath 
$argList

+';
$Conf{RsyncShareName} = [
   '/home/pierre',
   '/root/.ssh',
   '/devel',
   '/var/www/html',
   '/etc/samba'
];
$Conf{BackupFilesExclude} = [
   '/home/pierre/download',
   '/home/pierre/tmp',
   '/home/pierre/OperaDownloads',
   '/home/pierre/.cddb',
   '/home/pierre/.swp',
   '/home/pierre/.fonts',
   '/home/pierre/.opera',
   '/home/pierre/.mozilla',
   '/home/pierre/.thumbnails',
   '/home/pierre/.xsession-errors'
];
$Conf{RsyncArgs} = [
 '--numeric-ids',
 '--perms',
 '--owner',
 '--group',
 '--devices',
 '--links',
 '--times',
 '--block-size=2048',
 '--recursive',
];
$Conf{RsyncRestoreArgs} = [
 '--numeric-ids',
 '--perms',
 '--owner',
 '--group',
 '--devices',
 '--links',
 '--times',
 '--block-size=2048',
 '--relative',
 '--ignore-times',
 '--recursive',
];
$Conf{RsyncLogLevel} = 1;
 






---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupFilesExclude is not working with SMB Transfer

2005-11-02 Thread Paul Fox
i don't think you need to send a graphical image of your signature
along with your mail.  just your name in plaintext will be fine.

thanks,
paul
=-
 paul fox, [EMAIL PROTECTED] (arlington, ma, where it's 49.5 degrees)


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupFilesExclude is not working with SMB Transfer

2005-11-02 Thread Travis Fraser
On Wed, 2005-11-02 at 14:50 +0100, Christoph Pfund wrote:
> Hi,
>  
> I tried both recomended methods to exclude some directories from
> backup. First i used the recomended notation $conf(BackupFilesExclude)
> = ['/temp/*']; with no success. The whole directory was copied. The
> second try was the standard notation $conf(BackupFilesExclude) =
> ['/temp']; with the same result. Is there a third way to set this
> conf. variable right?
>  
This is from my previous post which I think should be in the archives:

I experimented a bit and found that the exclusions do work, and more
than one exclusion can be used. The trick was to prefix a backslash to
the directory or file that is excluded. Forward slashes did not work.
The exclusions are relative to the root of the share, of course.

I am using samba-3.0.14a on a Gentoo box, backing up Windows XP Pro and
Server 2003.

Some examples:

$Conf{BackupFilesExclude} = [ '\foo' ]

$Conf{BackupFilesExclude} = [ '\foo', '\*\bar' ]

Per-share excludes can be done as well:

$Conf{BackupFilesExclude} = { 
'share1$' => [ '\foo' , '\bar' ],
'share2$' => [ '\foobar' ], 
};

-- 
Travis Fraser <[EMAIL PROTECTED]>



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/