PDA

View Full Version : Ignoring dirs containing string


Nicolinux
05-12-2007, 06:42 PM
Hi,

I tried to edit the Backup - all files.dset to ignore directories that have the string "dont_backup_me" appended to their name. (eg. "/Users/me/Music/TempMusic_dont_backup_me" or "/Store_dont_backup_me"). I edited the Copy script and added an "ignore" command under the "Script Commands" tab. Item Specification is "*dont_backup_me*". I also made sure that this is the first line in the "Script Commands" tab. Superduper! didn't ignore those dirs and bloated the backup image. Did I missed something?
The backup image is located on an encrypted samba share - but I think that this is not related to my problem.

Thanks much

Stefan

dnanian
05-12-2007, 06:50 PM
Hm. We use standard Unix globbing to expand the regular expression, and that should, indeed, work...

Nicolinux
06-13-2007, 05:54 PM
Should I file an bug report then?

dnanian
06-14-2007, 02:50 AM
I verified that it worked at this end, Nicolinux. I'd need to try to reproduce your exact problem, so you can feel free to send me your script and I'll take a look.

Nicolinux
06-26-2007, 06:24 PM
I tried it again too. It doesent work for me :(
I created a disk image with the following contents:


ABCDE
FGHIJ
KLMNO
PQRST
UVWXYZ
XXXY_dont_backup_me
dont_backup_me
mit_unter
sldkjfalsdjf_dont_backup_me_llflflf
tttt_dont_backup_me


These are just some random directories. I'd like to ignore those that contain "dont_backup_me" in their name.
Therefore I created a custom copy script, included the "Backup - all files.dset" and added an entry "ignore - *dont_backup_me*"
This should take care of it, but it doesent. The destination diskimage after the backup contains every single directory with it's contents.

Here is my custom script:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Class</key>
<string>Composite</string>
<key>Description</key>
<string>Test</string>
<key>Directives</key>
<array>
<dict>
<key>Directive</key>
<string>exclude</string>
<key>Item</key>
<string>*dont_backup_me*</string>
</dict>
</array>
<key>Include Directives</key>
<array>
<string>Backup - all files.dset</string>
</array>
</dict>
</plist>


Thanks much.

Stefan

dnanian
06-26-2007, 06:31 PM
With those folders, in Terminal, what does:

ls *dont_backup_me*

match?

Nicolinux
07-10-2007, 10:39 PM
The following:


XXXY_dont_backup_me:
Picture 3.png

dont_backup_me:
Picture 4.png

sldkjfalsdjf_dont_backup_me_llflflf:
Picture 1.png Picture 5.png

tttt_dont_backup_me:
Picture 2.png


Hm, this is pretty annoying. I thought that shell globing and wildcards are pretty basic stuff to take care by the developers. I wonder why such a high prized backup tool fails here. Unless it's my fault or something with the filesystem is wrong I think it's really time to file a proper bug report.

Thanks, Stefan

dnanian
07-11-2007, 07:37 AM
I've tested this again here. I used a source image with the following folders at the top:

backup_me
dont_backup_me
please_dont_backup_me

My copy script included "Backup - all files", and then ignored "*dont_backup_me*".

I did a Smart Update. When I was done, only "backup_me" was present on the destination. It seems to be working fine...