Last post Apr 05, 2018 05:22 AM by Angie xu - MSFT
Apr 04, 2018 08:50 PM|red888|LINK
I cant hard code this because this needs to be reusable for all my apps.
I have a dir under the sites virtual dir named "notocar"
Im using this command to deploy (need to wrap skip in quotes to pass to cmd):
mypackage.deploy.cmd /Y -allowUntrusted /U:mydom\user /P:"sdlfkjsdlkfjsldf" /M:server -enableRule:AppOffline "-skip:objectName=filePath,absolutePath=.*notocar*"
This is not the right syntax because its still syncing that folder.
Whats the right syntax to ignore a subfolder?
============= Other things I tried:
This actually works, skipping this one file "-skip:objectname='filePath',absolutepath='Web.config'"
These args dont working (the folder is still deleted):
This seems to skip almost everything EXCEPT my folder:
It looks like because the notocarfolder doesnt exist in the package it deletes it every time? If I specify a folder that does exist in the package it leaves it alone. I dont want to create a logs folder just to get this to work. How do I ignore
this folder? Also, enableRule:DoNotDelete is not going to work because I want it to delete everything except this one folder
Apr 05, 2018 05:22 AM|Angie xu - MSFT|LINK
Hi red888 ,
I never tried to apply the skip parameter to virtul directory . But in my opinion , if you skip a file/folder but it's containing directory doesn't exist on the source, the directory (and thus the file) will be deleted anyway. In addition , i find
some related threads which discuss the same topic as yours :
Hope it helps .