You are here

Directory Exclusions Based On Path

12 posts / 0 new
Last post
TheQwerty
Offline
Last seen: 17 years 2 months ago
Joined: 2007-08-06 09:37
Directory Exclusions Based On Path

Is there a way to exclude a directory based on its path?

For instance say I have the following structure:
.\Project
.\Project\Build
.\Project\Helper
.\Project\Helper\Build

I'd like to backup .\Project but I want to exclude .\Project\Build.
If I enter .\Project\Build or Project\Build in the excludes the backup contains all 4 directories.
If I enter Build in the excludes it also excludes .\Project\Helper\Build and only backs up .\Project and .\Project\Helper.
It seems to be only looking at the directory name and not its path.

Is there a way to achieve this currently?
If not I'd like to suggest it for a future version.

Eric L
Offline
Last seen: 17 years 2 months ago
Joined: 2006-11-17 18:48
I've tried various

I've tried various combinations, but haven't been able to do it yet. I suspect that it's not matching based on a path, but just based on a folder name. So, if you want it to exclude \PortableGAIM\Data\Settings\.gaim\icons, you'd have to just enter "icons". Problem with that is if there are any other folders labeled "icons", it will exclude them all.

Any other way to do this?

Eric

klang
Offline
Last seen: 15 years 11 months ago
Joined: 2007-08-14 12:25
on a related note ..

Would it be insanely difficult to add "exclude regexps" instead of just excludes based loosely on extensions and directory?

That way, it would be possible to backup everything, except things that matches:
^#.*#$
^*.~$
^.*\.bak$

Exclusions based on file extension could be simply

\.exe$

Exclusions aiming solely at directories would be more difficult to make as rule that excludes a directory called MyDirectory would also exclude a file by the same name. (This inconvenience is a small price to pay for the added flexibility.)

(a list of possible reasonable exclusions would be quick and userfriendly to make)

LuP
Offline
Last seen: 13 years 1 week ago
Joined: 2007-09-18 12:34
Exclusion based on part of full file name

Or an other possibility, that doesn't use regex:

Exclude those files, whose path (relative or full?) contains a string entered as "Folders + Exts to exclude", e.g.:

Folders + Extensions to Exclude:

\ACAD\
\Docs\
~
\Backup\

will exclude:

C:\SomeDir\ACAD\acad.exe
C:\SomeDir\ACAD\acad.tmp
C:\SomeDir\ACAD\Fonts\acad.tmp
C:\AAA\BBB\XXX\ACAD\err.dmp

etc.

Behaviour similar to Win "xcopy /EXCLUDE:" command.

LuP

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
RegEx

is being added to Toucan.

___

Author of Toucan

'...and do the other things, not because they are easy, but because they are hard...' JFK

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 2 months ago
Joined: 2006-01-06 21:27
Oh, and

For anyone who wants information on Regular Expressions, try http://www.regular-expressions.info/
It proved to be invaluable while writing complex RegExs.
----
Ryan McCue.
Blog.
So all that Airbus-delay trouble over here in Europe is because of YOU!
Simeon.

"If you're not part of the solution, you're part of the precipitate."

klang
Offline
Last seen: 15 years 11 months ago
Joined: 2007-08-14 12:25
you are the King!

you are the King!

Smile

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
OK,

I'll look at doing something for the next version. Sorry for not posting back sooner, I've been on holiday!

___

Author of Toucan

'...and do the other things, not because they are easy, but because they are hard...' JFK

Simeon
Simeon's picture
Offline
Last seen: 10 years 1 month ago
DeveloperTranslator
Joined: 2006-09-25 15:15
We can tell

by the wave of posts you did Wink
Welcome back and I hope you enjoyed it.

“I can live with doubt and uncertainty and not knowing. I think it is much more interesting to live not knowing than to have answers that might be wrong.” - Richard P. Feynman

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Thanks,

and I did indeed have a good time!

___

Author of Toucan

'...and do the other things, not because they are easy, but because they are hard...' JFK

tstickel
Offline
Last seen: 3 years 9 months ago
Joined: 2006-07-06 11:39
Update?

So I have the recent update to the program, but it does not seem to include this. Any news?

Sticks

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Could

you try the new version in the Beta Testing forum and see if this still happens, if so please post there, thanks Smile

Log in or register to post comments