Re: [BackupPC-users] exclude not working

2014-08-19 Thread Michael Stowe
> Those were all of my includes just /raid and /data.
>
> I will update the configuration to your suggestion
>
> $Conf{BackupFilesExclude} = {
>  '/raid' => [
>'/data/WBM_Spool',
>  ]
> };
>
> I should be able to check the log file before the work day is out and
> make sure it is working.
>
> Thank you.
>
> Mark
>
> --

To simplify, I left out your other excludes, and to complicate things, I
left in a gratuitous comma (sorry about that.)

--
___
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] exclude not working

2014-08-19 Thread Mark Maciolek

On 8/19/2014 12:39 PM, Michael Stowe wrote:
>> hi,
>>
>> on Ubuntu 12.04, BackupPC 3.3.0
>>
>> $Conf{RsyncShareName} = [
>> '/data',
>> '/raid'
>> ];
>> $Conf{ClientTimeout} = 72;
>> $Conf{BackupFilesExclude} = {
>> '*' => [
>>   '/mnt',
>>   '/net',
>>   '/tmp',
>>   '/proc',
>>   '/sys',
>>   '/dev',
>>   '/run',
>>   '/*/data/WBM_spool',
>>   '/*/data/EPSCoR/WBM/WBM_spool',
>>   '/*/data/WBM/WBM_Spool'
>> ]
>> };
>>
>>
>> It still backups WBM_Spool, I have also tried this in the exclude list:
>>
>> '/raid/data/WBM/WBM_Spool'
>>
>> Is the backup of /data overriding the exclude?
>>
>> Mark
>>
>> --
> I'm not sure what you mean by overriding the exclude (do you have includes
> you're not listing?) but this exclusion should be working for:
>
> /data/*/data/WBM/WBM_Spool
> /raid/*/data/WBM/WBM_Spool
>
> Note that this wouldn't include
>
> /raid/data/WBM/WBM_Spool
>
> Nor would '/raid/data/WBM/WBM_Spool', which would exclude
>
> /data/raid/data/WBM/WBM_Spool
> /raid/raid/data/WBM/WBM_Spool
>
> Note that I'm assuming that your rsync modules point to their root-based
> equivalents in the filesystem.  You can, of course, point them anywhere.
>
> At any rate, if your goal is to exclude '/raid/data/WBM/WBM_Spool' then
> the correct exclude to use is:
>
> $Conf{BackupFilesExclude} = {
>  '/raid' => [
>'/data/WBM_Spool',
>  ]
> };
>
> You can replace '/raid' with a wildcard, or any part of '/data/WBM_Spool',
> but note that if you add extra wildcards and slashes, it probably won't
> match the directory you wish to exclude.
>
> --
> ___
> 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/
>
hi,

Those were all of my includes just /raid and /data.

I will update the configuration to your suggestion

$Conf{BackupFilesExclude} = {
 '/raid' => [
   '/data/WBM_Spool',
 ]
};

I should be able to check the log file before the work day is out and 
make sure it is working.

Thank you.

Mark

-- 

Mark Maciolek
Network Administrator
Morse Hall Room 339
603-862-3050
https://www.unh.edu/research/support-units/research-computing-center


---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


--
___
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] exclude not working

2014-08-19 Thread Michael Stowe
> hi,
>
> on Ubuntu 12.04, BackupPC 3.3.0
>
> $Conf{RsyncShareName} = [
>'/data',
>'/raid'
> ];
> $Conf{ClientTimeout} = 72;
> $Conf{BackupFilesExclude} = {
>'*' => [
>  '/mnt',
>  '/net',
>  '/tmp',
>  '/proc',
>  '/sys',
>  '/dev',
>  '/run',
>  '/*/data/WBM_spool',
>  '/*/data/EPSCoR/WBM/WBM_spool',
>  '/*/data/WBM/WBM_Spool'
>]
> };
>
>
> It still backups WBM_Spool, I have also tried this in the exclude list:
>
> '/raid/data/WBM/WBM_Spool'
>
> Is the backup of /data overriding the exclude?
>
> Mark
>
> --

I'm not sure what you mean by overriding the exclude (do you have includes
you're not listing?) but this exclusion should be working for:

/data/*/data/WBM/WBM_Spool
/raid/*/data/WBM/WBM_Spool

Note that this wouldn't include

/raid/data/WBM/WBM_Spool

Nor would '/raid/data/WBM/WBM_Spool', which would exclude

/data/raid/data/WBM/WBM_Spool
/raid/raid/data/WBM/WBM_Spool

Note that I'm assuming that your rsync modules point to their root-based
equivalents in the filesystem.  You can, of course, point them anywhere.

At any rate, if your goal is to exclude '/raid/data/WBM/WBM_Spool' then
the correct exclude to use is:

$Conf{BackupFilesExclude} = {
'/raid' => [
  '/data/WBM_Spool',
]
};

You can replace '/raid' with a wildcard, or any part of '/data/WBM_Spool',
but note that if you add extra wildcards and slashes, it probably won't
match the directory you wish to exclude.

--
___
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] exclude not working

2014-08-19 Thread Mark Maciolek
hi,

on Ubuntu 12.04, BackupPC 3.3.0

$Conf{RsyncShareName} = [
   '/data',
   '/raid'
];
$Conf{ClientTimeout} = 72;
$Conf{BackupFilesExclude} = {
   '*' => [
 '/mnt',
 '/net',
 '/tmp',
 '/proc',
 '/sys',
 '/dev',
 '/run',
 '/*/data/WBM_spool',
 '/*/data/EPSCoR/WBM/WBM_spool',
 '/*/data/WBM/WBM_Spool'
   ]
};


It still backups WBM_Spool, I have also tried this in the exclude list:

'/raid/data/WBM/WBM_Spool'

Is the backup of /data overriding the exclude?

Mark

-- 

Mark Maciolek
Network Administrator
Morse Hall Room 339
603-862-3050
https://www.unh.edu/research/support-units/research-computing-center


---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


--
___
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] exclude not working

2010-05-12 Thread Bowie Bailey
Steve Blackwell wrote:
> Also, though I'm not 100% sure about this, 
>
> $Conf{BackupFilesExclude} = {
> '*' => [
> ...
>
> should be 
>
> $Conf{BackupFilesExclude} = {
> '/raid1' => [
> ...
>   

Both of these are correct.  The first will apply the exclusion to all of
your shares, while the second will only apply the exclusion to the
"/raid1" share.

Note that if you use the second format, you need to be sure that the
sharename ("/raid1" in this case) matches exactly with what you
specified for the (Rsync|Tar|Smb)ShareName.

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


Re: [BackupPC-users] exclude not working

2010-05-12 Thread Steve Blackwell
On Wed, 12 May 2010 10:01:15 -0400
Mark Maciolek  wrote:

> Hi,
> 
> Backuppc 3.1 using rsync
> 
> $Conf{RsyncShareName} = [
>'/raid1'
> 
> $Conf{BackupFilesExclude} = {
>'*' => [
>  '/raid1/*/tilecache',
>  '/raid1/temp',
>  '/raid1/osmplanet'
>]
> 
> 
> 
> NewFileList still shows
>   2a85606be4fcc25d294720dfb67d183b 3657 
> f%2fraid1/fcaribbean/ftilecache/fNOAA_ENCT/f14/f000/f005/f746/f000/f009/f048.png
> 2a85606be4fcc25d294720dfb67d183b 3657 
> f%2fraid1/fcaribbean/ftilecache/fNOAA_ENCT
> 
> 
> Do I need to specify /raid1/caribbean/tilecache ?
> 
> Mark
Hi Mark,

I, too, have been having problems with exclude. See the (long) thread
titled "Syntax for excluding .gvfs". 

What I discovered is that if you use the wildcard, *, it must be quoted
otherwise all the excludes are ignored so 'raid1/*/tilecache' should be
'raid1/"*"/tilecache'.

Also, though I'm not 100% sure about this, 

$Conf{BackupFilesExclude} = {
'*' => [
...

should be 

$Conf{BackupFilesExclude} = {
'/raid1' => [
...

HTH
Steve

--

___
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] exclude not working

2010-05-12 Thread Mark Maciolek
Hi,

Backuppc 3.1 using rsync

$Conf{RsyncShareName} = [
   '/raid1'

$Conf{BackupFilesExclude} = {
   '*' => [
 '/raid1/*/tilecache',
 '/raid1/temp',
 '/raid1/osmplanet'
   ]



NewFileList still shows
  2a85606be4fcc25d294720dfb67d183b 3657 
f%2fraid1/fcaribbean/ftilecache/fNOAA_ENCT/f14/f000/f005/f746/f000/f009/f048.png
2a85606be4fcc25d294720dfb67d183b 3657 
f%2fraid1/fcaribbean/ftilecache/fNOAA_ENCT


Do I need to specify /raid1/caribbean/tilecache ?

Mark
-- 
Mark Maciolek
Network Administrator
Morse Hall 339
862-3050
m...@sr.unh.edu
https://www.sr.unh.edu

--

___
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] Exclude not working as expected

2010-02-10 Thread Bowie Bailey
Mark Wass wrote:
> Hi Bowie
>
> Thanks for clearing that up. So does that mean I should also amend these
> other excludes by putting a forward slash in front?
>
> 'etc/fstab', ==> '/etc/fstab',
>
> 'var/cache/apt/archives/*', ==> '/var/cache/apt/archives/*',
>   

Yes, anything that should only match at the beginning of the path should
start with a slash.  This works in much the same way it does on the
command line:

# cd proc

This will take you into any directory called 'proc' that is available in
whatever the current directory happens to be.

# cd /proc

This explicitly takes you to the '/proc' directory no matter where you
start from.

-- 
Bowie

--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
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] Exclude not working as expected

2010-02-09 Thread Kameleon
Anything that you want to be explicitly excluded you will need to put the
full path in the excludes. Otherwise if it matches anywhere else in the
filesystem it will be excluded.

On Tue, Feb 9, 2010 at 5:03 PM, Mark Wass  wrote:

> Hi Bowie
>
> Thanks for clearing that up. So does that mean I should also amend these
> other excludes by putting a forward slash in front?
>
> 'etc/fstab', ==> '/etc/fstab',
>
> 'var/cache/apt/archives/*', ==> '/var/cache/apt/archives/*',
>
> Thanks
>
> Mark
>
> -Original Message-
> From: Bowie Bailey [mailto:bowie_bai...@buc.com]
> Sent: Wednesday, 10 February 2010 12:40 AM
> To: backuppc-users@lists.sourceforge.net
> Subject: Re: [BackupPC-users] Exclude not working as expected
>
> Mark Wass wrote:
> >
> > Hi Guys
> >
> > I have a config file that looks likes this:
> >
> > $Conf{BackupFilesExclude} = {
> >
> > '/' => [
> >
> > 'dev',
> >
> > 'proc',
> >
> > 'sys',
> >
> > 'tmp',
> >
> > 'var/lib/mysql',
> >
> > 'etc/fstab',
> >
> > 'var/log/mysql/mysql-bin.*',
> >
> > 'var/log/apache2/*',
> >
> > 'shares',
> >
> > 'var/lib/cvs',
> >
> > 'var/lib/cvs-old',
> >
> > 'var/cache/apt/archives/*',
> >
> > 'var/log/samba/*',
> >
> > 'var/log/installer/*',
> >
> > 'var/log/apt/*',
> >
> > 'var/log/samba/*',
> >
> > 'HDD2'
> >
> > ]
> >
> > };
> >
> > $Conf{BackupFilesOnly} = {};
> >
> > $Conf{ClientNameAlias} = '192.168.1.3';
> >
> > $Conf{RsyncShareName} = [
> >
> > '/'
> >
> > ];
> >
> > I've got an exclude in there for "proc", the problem I'm getting is
> > that the "proc" is also getting excluded from "/opt/webmin/proc" I
> > only want the proc directly on the root "/" share to be excluded. How
> > can I make sure the no other "proc" folders are excluded?
> >
>
> You are telling it that you want all files/directories called 'proc' to
> be excluded. If you only want to exclude '/proc', then list it that way.
> You probably want to do the same thing with most of the rest of your
> list unless you are also wanting to exclude all 'tmp' directories, etc.
>
> $Conf{BackupFilesExclude} = {
> '/' => [
> '/dev',
> '/proc',
> '/sys',
> '/tmp',
> ...
> 'HDD2'
> ]
> };
>
> --
> Bowie
>
>
> 
> --
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> ___
> 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/
>
>
>
> --
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> ___
> 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/
>
--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev___
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] Exclude not working as expected

2010-02-09 Thread Mark Wass
Hi Bowie

Thanks for clearing that up. So does that mean I should also amend these
other excludes by putting a forward slash in front?

'etc/fstab', ==> '/etc/fstab',

'var/cache/apt/archives/*', ==> '/var/cache/apt/archives/*',

Thanks 

Mark

-Original Message-
From: Bowie Bailey [mailto:bowie_bai...@buc.com] 
Sent: Wednesday, 10 February 2010 12:40 AM
To: backuppc-users@lists.sourceforge.net
Subject: Re: [BackupPC-users] Exclude not working as expected

Mark Wass wrote:
>
> Hi Guys
>
> I have a config file that looks likes this:
>
> $Conf{BackupFilesExclude} = {
>
> '/' => [
>
> 'dev',
>
> 'proc',
>
> 'sys',
>
> 'tmp',
>
> 'var/lib/mysql',
>
> 'etc/fstab',
>
> 'var/log/mysql/mysql-bin.*',
>
> 'var/log/apache2/*',
>
> 'shares',
>
> 'var/lib/cvs',
>
> 'var/lib/cvs-old',
>
> 'var/cache/apt/archives/*',
>
> 'var/log/samba/*',
>
> 'var/log/installer/*',
>
> 'var/log/apt/*',
>
> 'var/log/samba/*',
>
> 'HDD2'
>
> ]
>
> };
>
> $Conf{BackupFilesOnly} = {};
>
> $Conf{ClientNameAlias} = '192.168.1.3';
>
> $Conf{RsyncShareName} = [
>
> '/'
>
> ];
>
> I've got an exclude in there for "proc", the problem I'm getting is
> that the "proc" is also getting excluded from "/opt/webmin/proc" I
> only want the proc directly on the root "/" share to be excluded. How
> can I make sure the no other "proc" folders are excluded?
>

You are telling it that you want all files/directories called 'proc' to
be excluded. If you only want to exclude '/proc', then list it that way.
You probably want to do the same thing with most of the rest of your
list unless you are also wanting to exclude all 'tmp' directories, etc.

$Conf{BackupFilesExclude} = {
'/' => [
'/dev',
'/proc',
'/sys',
'/tmp',
...
'HDD2'
]
};

-- 
Bowie


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the
business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
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/


--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
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] Exclude not working as expected

2010-02-09 Thread Bowie Bailey
Mark Wass wrote:
>
> Hi Guys
>
> I have a config file that looks likes this:
>
> $Conf{BackupFilesExclude} = {
>
> '/' => [
>
> 'dev',
>
> 'proc',
>
> 'sys',
>
> 'tmp',
>
> 'var/lib/mysql',
>
> 'etc/fstab',
>
> 'var/log/mysql/mysql-bin.*',
>
> 'var/log/apache2/*',
>
> 'shares',
>
> 'var/lib/cvs',
>
> 'var/lib/cvs-old',
>
> 'var/cache/apt/archives/*',
>
> 'var/log/samba/*',
>
> 'var/log/installer/*',
>
> 'var/log/apt/*',
>
> 'var/log/samba/*',
>
> 'HDD2'
>
> ]
>
> };
>
> $Conf{BackupFilesOnly} = {};
>
> $Conf{ClientNameAlias} = '192.168.1.3';
>
> $Conf{RsyncShareName} = [
>
> '/'
>
> ];
>
> I’ve got an exclude in there for “proc”, the problem I’m getting is
> that the “proc” is also getting excluded from “/opt/webmin/proc” I
> only want the proc directly on the root “/” share to be excluded. How
> can I make sure the no other “proc” folders are excluded?
>

You are telling it that you want all files/directories called 'proc' to
be excluded. If you only want to exclude '/proc', then list it that way.
You probably want to do the same thing with most of the rest of your
list unless you are also wanting to exclude all 'tmp' directories, etc.

$Conf{BackupFilesExclude} = {
'/' => [
'/dev',
'/proc',
'/sys',
'/tmp',
...
'HDD2'
]
};

-- 
Bowie

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
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] Exclude not working as expected

2010-02-08 Thread Mark Wass
Hi Guys

 

I have a config file that looks likes this: 

 

$Conf{BackupFilesExclude} = {

  '/' => [

'dev',

'proc',

'sys',

'tmp',

'var/lib/mysql',

'etc/fstab',

'var/log/mysql/mysql-bin.*',

'var/log/apache2/*',

'shares',

'var/lib/cvs',

'var/lib/cvs-old',

'var/cache/apt/archives/*',

'var/log/samba/*',

'var/log/installer/*',

'var/log/apt/*',

'var/log/samba/*',

'HDD2'

  ]

};

$Conf{BackupFilesOnly} = {};

$Conf{ClientNameAlias} = '192.168.1.3';

$Conf{RsyncShareName} = [

  '/'

];

 

 

I've got an exclude in there for "proc", the problem I'm getting is that the
"proc" is also getting excluded from "/opt/webmin/proc" I only want the proc
directly on the root "/" share to be excluded. How can I make sure the no
other "proc" folders are excluded?

 

Thanks

 

Mark

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com___
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] Exclude not working

2007-01-24 Thread Holger Parplies
Hi,

Jason Hughes wrote on 24.01.2007 at 15:45:16 [Re: [BackupPC-users] Exclude not 
working]:
> James Kyle wrote:
> >I figure I'm doing something wrong here, but I wish to backup 
> >/usr/local, but not /usr/local/var/backups
> >
> >_TOPDIR_/pc/localhost/config.pl:
> >
> >$Conf{RsyncShareName} = ['/usr/local'];
> >$Conf{BackupFilesExclude} = ['/usr/local/var/backups'];
> > [...]
> 
> Shouldn't your exclude path be _relative_ to that directory 
> then?

correct, you should have

$Conf {BackupFilesExclude} = [ '/var/backups' ];

Note that

$Conf {BackupFilesExclude} = [ 'var/backups' ];

would work too, but it would also exclude something like
'/usr/local/some/further/directories/var/backups', should it exist.

I wrote a while back in another thread that exclude paths are anchored to
the root of the "share" by BackupPC. That is wrong. *Include paths* are
($Conf {BackupFilesOnly} that is), exclude paths aren't. You need to specify
a leading slash if you want to guarantee that only /usr/local/var/backups
matches. Note also that you *could* append a trailing slash ('/var/backups/')
to make /usr/local/var/backups (and its contents) be excluded *only if* it is
a directory. If you, at a later point, replaced it with a softlink to some
place else, the softlink (but not the directory it points to, unless that is
also below /usr/local and not excluded) would then be backed up. It probably
doesn't make much difference in this case, but it would if you, for example,
used something like

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

(backup all files in /usr/local/var/backups but not the directories). That
is probably not a particularly good example, unless it is coincidentally
the backuppc user's home directory ... you might even be able to do fancy
stuff like

$Conf {BackupFilesExclude} = [ '+ /var/backups/.ssh/', '/var/backups/*/' ];

though that is unfortunately untested (and possibly counter-intuitive). What
I *did* test though, is that rsync [2.6.4] matches '.ssh' with '*', though
the man pages claims that "shell filename matching rules" are used.

I hope that was not too confusing :).

Regards,
Holger

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Exclude not working

2007-01-24 Thread Jason Hughes

All of my excludes look like this:
$Conf{BackupFilesExclude} = ['/proc', '/var/named/chroot/proc', '/mnt', 
'/sys', '/media'];

$Conf{XferMethod} = 'rsyncd';
$Conf{RsyncShareName} = 'wholedrive';

They seem to work fine.  I'm using 3.0.0beta3.  Is your rsync share name 
correct?  Shouldn't your exclude path be _relative_ to that directory 
then?  My "wholedrive" is "/", so my directories are relative.  Yours 
aren't.


JH

James Kyle wrote:
I figure I'm doing something wrong here, but I wish to backup 
/usr/local, but not /usr/local/var/backups


_TOPDIR_/pc/localhost/config.pl:

$Conf{RsyncShareName} 

 = ['/usr/local'];
$Conf{BackupFilesExclude} 

 = ['/usr/local/var/backups'];
$Conf{RsyncClientCmd} 

 = '/usr/bin/sudo $rsyncPath $argList';
$Conf{RsyncClientRestoreCmd} 

 = '/usr/bin/sudo $rsyncPath $argList';

localhost full backup log:

Contents of file /usr/local/var/backups/pc/localhost/XferLOG.0.z, 
modified 2007-01-24 12:03:32 (Extracting only Errors)


Running: /usr/bin/sudo /usr/bin/rsync --server --sender --numeric-ids --perms 
--owner --group --devices --links --times --block-size=2048 --recursive 
--exclude=/usr/local/var/backups --ignore-times . /usr/local/
Xfer PIDs are now 315
Got remote protocol 28
Negotiated protocol version 26
Sent exclude: /usr/local/var/backups
Xfer PIDs are now 315,316
[ skipped 2037 lines ]
Done: 1892 files, 214682497 bytes
  
And yet, 
Name		Type	Mode	#	Size	Date Modified

backups dir 07550   544 2007-01-24 -8:00

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Exclude not working

2007-01-24 Thread James Kyle
I figure I'm doing something wrong here, but I wish to backup /usr/ 
local, but not /usr/local/var/backups


_TOPDIR_/pc/localhost/config.pl:

$Conf{RsyncShareName} = ['/usr/local'];
$Conf{BackupFilesExclude} = ['/usr/local/var/backups'];
$Conf{RsyncClientCmd} = '/usr/bin/sudo $rsyncPath $argList';
$Conf{RsyncClientRestoreCmd} = '/usr/bin/sudo $rsyncPath $argList';

localhost full backup log:

Contents of file /usr/local/var/backups/pc/localhost/XferLOG.0.z,  
modified 2007-01-24 12:03:32 (Extracting only Errors)


Running: /usr/bin/sudo /usr/bin/rsync --server --sender --numeric-ids  
--perms --owner --group --devices --links --times --block-size=2048 -- 
recursive --exclude=/usr/local/var/backups --ignore-times . /usr/local/

Xfer PIDs are now 315
Got remote protocol 28
Negotiated protocol version 26
Sent exclude: /usr/local/var/backups
Xfer PIDs are now 315,316
[ skipped 2037 lines ]
Done: 1892 files, 214682497 bytes

And yet,
NameTypeMode#   SizeDate Modified
backups dir 07550   544 2007-01-24 -8:00



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/