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/