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.
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
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)
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
is being added to Toucan.
___
Author of Toucan
'...and do the other things, not because they are easy, but because they are hard...' JFK
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."
you are the King!
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
by the wave of posts you did
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
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
So I have the recent update to the program, but it does not seem to include this. Any news?
Sticks
you try the new version in the Beta Testing forum and see if this still happens, if so please post there, thanks