Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Prevent Directory Delete
cc96ai
can we set any parameter to prevent accidently delete whole directory in destination server?
like disable deploy whole directory ?
excludePath, excludePattern, ??
Find more posts tagged with
Comments
stefanmaier
Hi,
check the filter tags within source and target definition.
We use something like this:[html]
...
....
...
....
[/html]
cc96ai
can we set exclusive all directory ?
stefanmaier
Hi,
yep. [html]
[/html]should work. See OD manual for some more information about deployment regexes...
Adam Stoller
can we set exclusive all directory ?
Don't know if this will work - but I suppose you could try:
<excludePattern regex="^\./[^/]+/" />
though this might interfere with trying to deploy to sub-directories too. You may want (need?) to re-examine your entire deployment strategy and infrastructure.
John742
Honestly I got extremely tired of trying to figuire an all encompassing regex expression for my deployments. I moved to filelist deployments and used my .ipl(s) that created the filelist to control what files got into the deployment phase. One quick way to achieve a non folder deployment/deletion with filelist is just to make sure the high level folder does not make it into the list.
example : highlevel folder name: topfolder
foreach $file(
@attachedfileaarray)
{
if ($file =~ m/^topfolder\//)
{
add file to filelist
}
}
With the example above the file must begin with "topfolder/"
selecting the folder only gives "topfolder", which will not be included in the filelist. Also you do not need to manage 25,000 includes and excludes in your OD configs.