BackupPC-users

Re: [BackupPC-users] Exclude directories

2013-06-07 17:08:07
Subject: Re: [BackupPC-users] Exclude directories
From: Gary Roach <gary719_list1 AT verizon DOT net>
To: backuppc-users AT lists.sourceforge DOT net
Date: Fri, 07 Jun 2013 14:09:07 -0700
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 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 <kameleon25 AT gmail DOT 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 <wbppc AT parplies DOT 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




------------------------------------------------------------------------------
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 AT lists.sourceforge DOT 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 AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
<Prev in Thread] Current Thread [Next in Thread>