Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Deploy of empty dir won't overwrite target files
System
Follow-up to my post about reverse deploy and delete files....
I've got my scripts written to do a reverse deploy of the data files, then a forward deploy of an EMPTY directory, with the intent of removing the files I just retrieved. The forward deploy configuration has 'doDeletes=yes', but it won't delete the files on the forward deploy target.
The deploy log files show "DEPLOYING not required". There are no errors relating to permissions or the area I'm targeting, just an indication that nothing is being sent. A snippe of log:
id=0 server: Destination directory [/local/home/doc/en_US/dataSource]
id=0 server: Options: do_deletes user=dynuser group=other ignore_modes ignore_users ignore_groups
id=0 server: COMPARE - dst[/local/home/doc/en_US/dataSource] with src[/tmp/180203105557]
(3) id=0 server: Getting directory info for (.)
(2) id=0 server: COMPARING done.
Thread-16 PRECOMMIT
(3) id=0 server: DEPLOYING to destination path [/local/home/doc/en_US/dataSource]
id=0 server: DEPLOYING not required
My ksh script looks like this, just showing the important bit here::
EMPTY_DIR=/tmp/`date+%d%m%y%H%M%S`
mkdir -p $EMPTY_DIR
# reverse deploy config to pull files to my 'safe' server from production servers
iwodstart CopyUserFiles -k area=${mySrcArea} -k remote_directory=${myDestDir} user=${myUser}
DEPLOY_STATUS=$?
if [[ ${DEPLOY_STATUS} == 0 ]]
then
# forward deploy to production servers, doDeletes=yes, overwrites the area, removing the data files
iwodstart RemoveUserFiles -k area=${EMPTY_DIR} -k remote_directory=${mySrcDir} -k user=${myUser} -k remote_server=${myServer}
fi
The RemoveUserFiles deploy config looks like:
<deploymentConfiguration >
<localNode host="10.101.112.183" />
<deployment name="RemoveUserFiles" transactional="no" >
<execDeploymentTask useDefinition="RemoveUserFiles-def" />
</deployment>
<definition name="RemoveUserFiles-def" >
<source >
<sourceFilesystem area="$area^" >
<pathSpecification >
<path name="." />
</pathSpecification>
</sourceFilesystem>
</source>
<target useReplicationFarm="REPFARM_0" >
<targetFilesystem area="$remote_directory^" />
<transferRules doDeletes="yes" />
<permissionRules group="other" user="$user^" />
<comparisonRules ignoreModes="yes" ignoreUser="yes" ignoreGroup="yes" />
</target>
</definition>
<replicationFarmSet >
<replicationFarm name="REPFARM_0" >
<nodeRef useNode="$remote_server^" timeout="30" />
</replicationFarm>
</replicationFarmSet>
</deploymentConfiguration>
Find more posts tagged with
Comments
There are no comments yet