Re: [BackupPC-users] Exclude directories

2013-06-07 Thread Gary Roach
I hope this doesn't confuse more than help but I had a problem with the 
"=>" share notation using rsyncd. The system ignored my exclusions. The 
instructions say that this happens only if you are using smb (as I 
remember) but not other transfer protocols. I switched to a streight 
comma delimited list for the include files and cleared the problem. 
Unless you have Windoz machines I don't think the share notation is needed.


Gary R

On 06/07/2013 01:41 PM, Kameleon wrote:
Here is the entry in config.pl <http://config.pl> after adding it to 
the web interface. Is this correct?


$Conf{BackupFilesExclude} = {
  '*' => [
'/sys',
'/proc',
'/dev',
'/tmp',
'/server',
'/mnt',
'*.tmp',
'.deleted',
'.deleted/'
  ]
};


On Fri, Jun 7, 2013 at 3:38 PM, Kameleon <mailto:kameleo...@gmail.com>> wrote:


Sorry I didn't mention the xfer method. All servers use rsync over
ssh. I plan to try the above this weekend with the full runs.


On Fri, Jun 7, 2013 at 1:24 PM, Holger Parplies mailto:wb...@parplies.de>> wrote:

Hi,

Michael Stowe wrote on 2013-05-31 08:21:03 -0500 [Re:
[BackupPC-users] Exclude directories]:
> > On each of our samba servers inside of each share is a
.deleted folder
> > that
> > all of the files that a user deletes from the share within
windows goes to
> > instead of actually being deleted immediately. I do not
want to back these
> > up but they are not all in the same path on all the
servers. What is the
> > correct syntax to exclude these from the backups? Should
*/.deleted work?
> > Or will I need to explicitly declare all the paths?
>
> $Conf{BackupFilesExclude} = {
>   '*' => [
> '*/.deleted'
> '*/.deleted/*'
>   ]
> };

strictly, this depends on the XferMethod (which the OP did not
mention), but
the above looks as though it should mostly work. For rsync(d),
the '*/' in the
patterns is meaningless except for preventing '.deleted' at
the top level
within the share to match. Probably the same holds for tar,
but I didn't
check. As for smb, there always seems to be confusion whether
in-/excludes
need to contain slashes or backslashes. My memory seems to say
"backslashes",
but I haven't ever used smb XferMethod myself.

In any case, it should be possible to use wildcards and *not*
list all paths.
Again, the syntax of in-/excludes depends on the XferMethod used.

Regards,
Holger


--
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and
operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
<mailto: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/





--
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j


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


--
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j___
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 directories

2013-06-07 Thread Kameleon
Here is the entry in config.pl after adding it to the web interface. Is
this correct?

$Conf{BackupFilesExclude} = {
  '*' => [
'/sys',
'/proc',
'/dev',
'/tmp',
'/server',
'/mnt',
'*.tmp',
'.deleted',
'.deleted/'
  ]
};


On Fri, Jun 7, 2013 at 3:38 PM, Kameleon  wrote:

> Sorry I didn't mention the xfer method. All servers use rsync over ssh. I
> plan to try the above this weekend with the full runs.
>
>
> On Fri, Jun 7, 2013 at 1:24 PM, Holger Parplies  wrote:
>
>> Hi,
>>
>> Michael Stowe wrote on 2013-05-31 08:21:03 -0500 [Re: [BackupPC-users]
>> Exclude directories]:
>> > > On each of our samba servers inside of each share is a .deleted folder
>> > > that
>> > > all of the files that a user deletes from the share within windows
>> goes to
>> > > instead of actually being deleted immediately. I do not want to back
>> these
>> > > up but they are not all in the same path on all the servers. What is
>> the
>> > > correct syntax to exclude these from the backups? Should */.deleted
>> work?
>> > > Or will I need to explicitly declare all the paths?
>> >
>> > $Conf{BackupFilesExclude} = {
>> >   '*' => [
>> > '*/.deleted'
>> > '*/.deleted/*'
>> >   ]
>> > };
>>
>> strictly, this depends on the XferMethod (which the OP did not mention),
>> but
>> the above looks as though it should mostly work. For rsync(d), the '*/'
>> in the
>> patterns is meaningless except for preventing '.deleted' at the top level
>> within the share to match. Probably the same holds for tar, but I didn't
>> check. As for smb, there always seems to be confusion whether in-/excludes
>> need to contain slashes or backslashes. My memory seems to say
>> "backslashes",
>> but I haven't ever used smb XferMethod myself.
>>
>> In any case, it should be possible to use wildcards and *not* list all
>> paths.
>> Again, the syntax of in-/excludes depends on the XferMethod used.
>>
>> Regards,
>> Holger
>>
>>
>> --
>> How ServiceNow helps IT people transform IT departments:
>> 1. A cloud service to automate IT design, transition and operations
>> 2. Dashboards that offer high-level views of enterprise services
>> 3. A single system of record for all IT processes
>> http://p.sf.net/sfu/servicenow-d2d-j
>> ___
>> 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/
>>
>
>
--
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j___
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 directories

2013-06-07 Thread Kameleon
Sorry I didn't mention the xfer method. All servers use rsync over ssh. I
plan to try the above this weekend with the full runs.


On Fri, Jun 7, 2013 at 1:24 PM, Holger Parplies  wrote:

> Hi,
>
> Michael Stowe wrote on 2013-05-31 08:21:03 -0500 [Re: [BackupPC-users]
> Exclude directories]:
> > > On each of our samba servers inside of each share is a .deleted folder
> > > that
> > > all of the files that a user deletes from the share within windows
> goes to
> > > instead of actually being deleted immediately. I do not want to back
> these
> > > up but they are not all in the same path on all the servers. What is
> the
> > > correct syntax to exclude these from the backups? Should */.deleted
> work?
> > > Or will I need to explicitly declare all the paths?
> >
> > $Conf{BackupFilesExclude} = {
> >   '*' => [
> > '*/.deleted'
> > '*/.deleted/*'
> >   ]
> > };
>
> strictly, this depends on the XferMethod (which the OP did not mention),
> but
> the above looks as though it should mostly work. For rsync(d), the '*/' in
> the
> patterns is meaningless except for preventing '.deleted' at the top level
> within the share to match. Probably the same holds for tar, but I didn't
> check. As for smb, there always seems to be confusion whether in-/excludes
> need to contain slashes or backslashes. My memory seems to say
> "backslashes",
> but I haven't ever used smb XferMethod myself.
>
> In any case, it should be possible to use wildcards and *not* list all
> paths.
> Again, the syntax of in-/excludes depends on the XferMethod used.
>
> Regards,
> Holger
>
>
> --
> How ServiceNow helps IT people transform IT departments:
> 1. A cloud service to automate IT design, transition and operations
> 2. Dashboards that offer high-level views of enterprise services
> 3. A single system of record for all IT processes
> http://p.sf.net/sfu/servicenow-d2d-j
> ___
> 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/
>
--
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j___
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 directories

2013-06-07 Thread Holger Parplies
Hi,

Michael Stowe wrote on 2013-05-31 08:21:03 -0500 [Re: [BackupPC-users] Exclude 
directories]:
> > On each of our samba servers inside of each share is a .deleted folder
> > that
> > all of the files that a user deletes from the share within windows goes to
> > instead of actually being deleted immediately. I do not want to back these
> > up but they are not all in the same path on all the servers. What is the
> > correct syntax to exclude these from the backups? Should */.deleted work?
> > Or will I need to explicitly declare all the paths?
> 
> $Conf{BackupFilesExclude} = {
>   '*' => [
> '*/.deleted'
> '*/.deleted/*'
>   ]
> };

strictly, this depends on the XferMethod (which the OP did not mention), but
the above looks as though it should mostly work. For rsync(d), the '*/' in the
patterns is meaningless except for preventing '.deleted' at the top level
within the share to match. Probably the same holds for tar, but I didn't
check. As for smb, there always seems to be confusion whether in-/excludes
need to contain slashes or backslashes. My memory seems to say "backslashes",
but I haven't ever used smb XferMethod myself.

In any case, it should be possible to use wildcards and *not* list all paths.
Again, the syntax of in-/excludes depends on the XferMethod used.

Regards,
Holger

--
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
___
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 directories

2013-05-31 Thread Michael Stowe


> On each of our samba servers inside of each share is a .deleted folder
> that
> all of the files that a user deletes from the share within windows goes to
> instead of actually being deleted immediately. I do not want to back these
> up but they are not all in the same path on all the servers. What is the
> correct syntax to exclude these from the backups? Should */.deleted work?
> Or will I need to explicitly declare all the paths?

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



--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
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 directories

2013-05-30 Thread Kameleon
On each of our samba servers inside of each share is a .deleted folder that
all of the files that a user deletes from the share within windows goes to
instead of actually being deleted immediately. I do not want to back these
up but they are not all in the same path on all the servers. What is the
correct syntax to exclude these from the backups? Should */.deleted work?
Or will I need to explicitly declare all the paths?
--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1___
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 directories from backup - rsync

2008-01-24 Thread Jon Forrest
Nils Breunese (Lemonbit) wrote:

> Craig already explained this before on the list. At one time BackupPC  
> only worked with Samba shares and that's how the share terminology got  
> into BackupPC.

I remember this. However, this historical accident still doesn't
help those of us who try to use the include or exclude directories feature.
I would respectfully suggest that something be done to clarify
this. I'm not sure what the right thing to do is, other
than adding more configuration variables.

Cordially,
-- 
Jon Forrest
Unix Computing Support
College of Chemistry
173 Tan Hall
University of California Berkeley
Berkeley, CA
94720-1460
510-643-1032
[EMAIL PROTECTED]

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 directories from backup - rsync

2008-01-24 Thread Nils Breunese (Lemonbit)
Jon Forrest wrote:

>> See the examples in the docs: 
>> http://backuppc.sourceforge.net/faq/BackupPC.html#item__conf_backupfilesexclude_
>> Since you're using rsync shares, you have to specify the share  
>> name  and a dir relative to the share, so I guess it should be:
>> 
>> $Conf{BackupFilesExclude} = {
>> '/home/userX/BackupTest' => ['/IgnoreThisDir'],
>> };
>
> I was sadly happy to see another person stumble with
> this problem since I did too. I remain convinced that
> the way this works is very unintuitive. Trying
> to use terminology such as "share" and "key name"
> when using rsync just doesn't make sense.

Craig already explained this before on the list. At one time BackupPC  
only worked with Samba shares and that's how the share terminology got  
into BackupPC.

Nils Breunese.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 directories from backup - rsync

2008-01-24 Thread Jon Forrest
Nils Breunese (Lemonbit) wrote:

> See the examples in the docs: 
> http://backuppc.sourceforge.net/faq/BackupPC.html#item__conf_backupfilesexclude_
> 
> Since you're using rsync shares, you have to specify the share name  
> and a dir relative to the share, so I guess it should be:
> 
> 
> $Conf{BackupFilesExclude} = {
>  '/home/userX/BackupTest' => ['/IgnoreThisDir'],
> };

I was sadly happy to see another person stumble with
this problem since I did too. I remain convinced that
the way this works is very unintuitive. Trying
to use terminology such as "share" and "key name"
when using rsync just doesn't make sense.

Cordially,
-- 
Jon Forrest
Unix Computing Support
College of Chemistry
173 Tan Hall
University of California Berkeley
Berkeley, CA
94720-1460
510-643-1032
[EMAIL PROTECTED]

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 directories from backup - rsync

2008-01-24 Thread Nils Breunese (Lemonbit)
Jockes wrote:

> I have some really big directories in the home dir. I would like to  
> exclude those dirs from backup but can not get it working.
>
> $Conf{XferMethod} = 'rsync';
>
> $Conf{RsyncShareName} = [
>   '/etc',
>   '/root',
>   '/home/userX/BackupTest'
> ];
>
> $Conf{BackupFilesExclude} =
>[
> '/home/userX/BackupTest/IgnoreThisDir'
>  ];
>
> Any idea?

See the examples in the docs: 
http://backuppc.sourceforge.net/faq/BackupPC.html#item__conf_backupfilesexclude_

Since you're using rsync shares, you have to specify the share name  
and a dir relative to the share, so I guess it should be:


$Conf{BackupFilesExclude} = {
 '/home/userX/BackupTest' => ['/IgnoreThisDir'],
};


Nils Breunese.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 directories from backup - rsync

2008-01-24 Thread Jockes

Hello,

I have some really big directories in the home dir. I would like to 
exclude those dirs from backup but can not get it working.


My client config:

#
# Local server backup of /etc as user backuppc
#
$Conf{XferMethod} = 'rsync';

$Conf{RsyncShareName} = [
 '/etc',
 '/root',
 '/home/userX/BackupTest'
];

#   Don't do backups between Midnight and 9am
#   PC'c should be backed up during the day
#   Backed up at first wakeup after 9am
$Conf{BlackoutGoodCnt} = '0';
$Conf{BlackoutBadPingLimit} = '3';
$Conf{BlackoutPeriods} = [
 {
   'hourEnd' => '9',
   'weekDays' => [
 '0',
 '1',
 '2',
 '3',
 '4',
 '5',
 '6'
   ],
   'hourBegin' => '0'
 }
];
$Conf{BackupFilesExclude} =
  [
   '/home/userX/BackupTest/IgnoreThisDir'
];

Any idea?

BR / Joacim
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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 directories - syntax problems?

2007-04-02 Thread Holger Parplies
Hi,

sorry, I missed the error at first reading.

Guy Malacrida wrote on 02.04.2007 at 10:22:57 [Re: [BackupPC-users] Exclude 
directories - syntax problems?]:
> $Conf{RsyncShareName} = ['cDrive','dDrive'];
> $Conf{BackupFilesExclude} = ['/Documents and Settings/*/Local
> Settings/Temporary Internet Files','/WINDOWS/Temp','
> >
> 
> So I guess the exclusions apply to both drive even if they don't exit in
> both.

That's correct. If you have just one array, that's applied to all drives.
Why it solves your problem is:

> >$Conf{RsyncShareName} = ['cDrive','dDrive'];
> >$Conf{BackupFilesExclude} = {
> >'c' => ['/Documents and Settings/*/Local Settings/Temporary Internet
> >Files','/WINDOWS/Temp','/pagefile.sys',' hiberfil.sys','/RECYCLER'],
> >'d' => ['/Download'],
> >};

your excludes were for shares 'c' and 'd' while you were backing up shares
'cDrive' and 'dDrive', for which they did not apply. So,

$Conf{RsyncShareName} = ['cDrive','dDrive'];
$Conf{BackupFilesExclude} = {
'cDrive' => ['/Documents and Settings/*/Local Settings/Temporary 
Internet Files','/WINDOWS/Temp','/pagefile.sys',' hiberfil.sys','/RECYCLER'],
'dDrive' => ['/Download'],
};

should do what you really want :).

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 directories - syntax problems?

2007-04-02 Thread Guy Malacrida

I kept trying any other way and finally SOLVED the problem by just doing:
Config.pl of the PC:
$Conf{XferMethod} = 'rsyncd';
$Conf{RsyncShareName} = ['cDrive','dDrive'];
$Conf{BackupFilesExclude} = ['/Documents and Settings/*/Local
Settings/Temporary Internet Files','/WINDOWS/Temp','


/pagefile.sys',' hiberfil.sys','/RECYCLER', '/Download'];
$Conf{RsyncdUserName} = 'backuppc';
$Conf{RsyncdPasswd} = '';



So I guess the exclusions apply to both drive even if they don't exit in
both. Fact is, these directories are excluded now!
Thanks and have a good day!
Guy

2007/3/30, Guy Malacrida <[EMAIL PROTECTED]>:


Stupid of me, I had not define the d: drive in the rsync.conf file in the
computer to be backed-up, sorry for that!
Last log shows both c: and d: drive were properly backed-up yesterday,
although the exclude are still not considered.
I then need to fix how to exclude these directories. What could be wrong
in the syntax here, any idea?
Config.pl of the PC:
$Conf{XferMethod} = 'rsyncd';
$Conf{RsyncShareName} = ['cDrive','dDrive'];
$Conf{BackupFilesExclude} = {
'c' => ['/Documents and Settings/*/Local Settings/Temporary Internet
Files','/WINDOWS/Temp','/pagefile.sys',' hiberfil.sys','/RECYCLER'],
'd' => ['/Download'],
};
$Conf{RsyncdUserName} = 'backuppc';
$Conf{RsyncdPasswd} = '';

Thanks for any hint!
Guy

2007/3/29, Guy Malacrida <[EMAIL PROTECTED]>:
>
> Hi Craig, thanks to take the time to reply my query!
>
> I also don't understand why this is happening but I enclose here after
> excerpts of three files, i.e.:
>
> Contents of file /etc/backuppc/config.pl, (MAIN CONFIG.PL file for
> backuppc)
>
> ###
> # What to backup and when to do it
> # (can be overridden in the per-PC config.pl)
> ###
>
>
>
>
> # Name of the host share that is backed up when using SMB.  This can be a
> # string or an array of strings if there are multiple shares per host.
> # Examples:
> #
>
>
>
> $Conf{SmbShareName} 

 = 'c';  # backup 'c' share
> #
>
>
> $Conf{SmbShareName}
>  

 = ['c', 'd'];   # backup 'c' and 'd' shares
> #
> # This setting only matters if
>
>
>
> $Conf{XferMethod} 

 = 'smb'.
> #
>
>
>
> $Conf{SmbShareName} 

 = 'C$', 'D$';
> #
> ##
> # General per-PC configuration settings
> # (can be overridden in the per-PC
>
>
>
>
> config.pl)
> ###
> #
>
>
>
> $Conf{XferMethod}
>  

 = 'rsyncd';
>
> #
> # This can also be a list of multiple file system paths or modules.
> # For example, by adding --one-file-system to
>
>
>
> $Conf{RsyncArgs} 

 you
> # can backup each file system separately, which makes restoring one
> # bad file system easier.  In this case you would list all of the mount
> # points:
> #
> #
>
>
>
> $Conf{RsyncShareName} 

 = ['/', '/var', '/data', '/boot'];
> #
>
>
>
> $Conf{RsyncShareName}
>  

 = '/';
>
> #
> # Rsync daemon port on the client, for
>
>
> $Conf{XferMethod} 
 = 
"rsyncd".
>
> #
>
>
>
> $Conf{RsyncdClientPort} 

 = 873;
>
> #
> # Rsync daemon user name on client, for
>
>
>
> $Conf{XferMethod} 
 = 
"rsyncd".
> # The user name and password are stored on the client in whatever file
> # the "secrets file" parameter in rsyncd.conf points to
> # (eg: /etc/rsyncd.secrets).
>
>
>
>
>
> #
> $Conf{RsyncdUserName}
>
>  

>  = '';
>
> #
>  Arguments to rsync for backup.  Do not edit the first set unless you
>
> # have a thorough understanding of how File::RsyncP works.
> #
> # Examples of additional arguments that should work are --exclude/--include,
>
>
>
>
> # eg:
> #
> #
> $Conf{RsyncArgs}
>
>
>  

 = [
> #   # original arguments

Re: [BackupPC-users] Exclude directories - syntax problems?

2007-03-29 Thread Guy Malacrida

Stupid of me, I had not define the d: drive in the rsync.conf file in the
computer to be backed-up, sorry for that!
Last log shows both c: and d: drive were properly backed-up yesterday,
although the exclude are still not considered.
I then need to fix how to exclude these directories. What could be wrong in
the syntax here, any idea?
Config.pl of the PC:
$Conf{XferMethod} = 'rsyncd';
$Conf{RsyncShareName} = ['cDrive','dDrive'];
$Conf{BackupFilesExclude} = {
   'c' => ['/Documents and Settings/*/Local Settings/Temporary Internet
Files','/WINDOWS/Temp','/pagefile.sys','hiberfil.sys','/RECYCLER'],
   'd' => ['/Download'],
};
$Conf{RsyncdUserName} = 'backuppc';
$Conf{RsyncdPasswd} = '';

Thanks for any hint!
Guy

2007/3/29, Guy Malacrida <[EMAIL PROTECTED]>:


Hi Craig, thanks to take the time to reply my query!

I also don't understand why this is happening but I enclose here after
excerpts of three files, i.e.:

Contents of file /etc/backuppc/config.pl, (MAIN CONFIG.PL file for
backuppc)

###
# What to backup and when to do it
# (can be overridden in the per-PC config.pl)
###



# Name of the host share that is backed up when using SMB.  This can be a
# string or an array of strings if there are multiple shares per host.
# Examples:
#


$Conf{SmbShareName} 

 = 'c';  # backup 'c' share
#

$Conf{SmbShareName}
 

 = ['c', 'd'];   # backup 'c' and 'd' shares
#
# This setting only matters if


$Conf{XferMethod} 

 = 'smb'.
#


$Conf{SmbShareName} 

 = 'C$', 'D$';
#
##
# General per-PC configuration settings
# (can be overridden in the per-PC



config.pl)
###
#


$Conf{XferMethod}
 

 = 'rsyncd';

#
# This can also be a list of multiple file system paths or modules.
# For example, by adding --one-file-system to


$Conf{RsyncArgs} 

 you
# can backup each file system separately, which makes restoring one
# bad file system easier.  In this case you would list all of the mount
# points:
#
#


$Conf{RsyncShareName} 

 = ['/', '/var', '/data', '/boot'];
#


$Conf{RsyncShareName}
 

 = '/';

#
# Rsync daemon port on the client, for

$Conf{XferMethod} 
 
= "rsyncd".

#


$Conf{RsyncdClientPort} 

 = 873;

#
# Rsync daemon user name on client, for


$Conf{XferMethod} 
 
= "rsyncd".
# The user name and password are stored on the client in whatever file
# the "secrets file" parameter in rsyncd.conf points to
# (eg: /etc/rsyncd.secrets).




#
$Conf{RsyncdUserName}
 

 = '';

#
 Arguments to rsync for backup.  Do not edit the first set unless you

# have a thorough understanding of how File::RsyncP works.
#
# Examples of additional arguments that should work are --exclude/--include,



# eg:
#
#
$Conf{RsyncArgs}

 

 = [
#   # original arguments here
#   '-v',
#   '--exclude', '/proc',
#   '--exclude', '*.tmp',
# ];

#


$Conf{RsyncArgs} 

 = [
#
# Do not edit these!
#
'--numeric-ids',

'--perms',
'--owner',
'--group',



'--devices',
'--links',
'--times',
'--block-size=2048',

'--recursive',

#
# If you are using a patched client rsync that supports the



# --checksum-seed option (see http://backuppc.sourceforge.net
),
# then uncomment this to enabled rsync checksum cachcing



#
#'--checksum-seed=32761',

#
# Add additio

[BackupPC-users] Exclude directories - syntax problems?

2007-03-22 Thread Guy Malacrida

Hello,

I am a very happy user of backuppc and take this opportunity to give my
congratulations for this outstanding software. I have implemented backuppc
in my home network (2 WinXP home boxes + Kuduntu laptop).

The programs sits on an Ubuntu 6.10 box and I am using version 2.12 and
rsyncd for the pcs. I am using the programs for a couple of weeks only and
still learn it, and have a lot more to learn (archiving, restore... etc).

But what I saw is that there are many errors in the error.log for files too
long coming from directories that I explicitly excluded !?!

In my config.pl for the PCs
$Conf{BackupFilesExclude} = ['/WINDOWS/Temp', '/Documents and
Settings/Administrateur/Local Settings/Temporary Internet Files',
'/pagefile.sys'];

In the Xferlog for that PC:
Send exclude: /WINDOWS/Temp

So it looks like only the first directory is sent to be excluded but none of
the others?

And then down below many errors ... failed, file name too long for files
in the second directory I excluded in my list above, i.e. the Temporary
Internet  files.

I must say I did try without the [ ] brackets and this makes no change. I
tried without space after the coma: no change. I tried without comas but
then backuppc signaled an error in the config.pl file at the line of
exclusions.

Any ideas?

Thank you very much in advance

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