automatic backup for web deploy 3 (IIS) - to exclude folders in the backup
iis, microsoft-web-deploy, msdeploy, webdeploy
Solution
There are skip parameters that you can use, try:
msdeploy.exe -verb:sync -source:backupmanager -dest:backupmanager=<siteName>,uselast=true -skip:xpath=dirPath[@path='App_Data']
So basically add `-skip:xpath="/uploads/"`
Problem
I have managed to setup Web Deploy Automatic Backups by following this guide, which works great. However, in my websites I have a folder relative to the root `/uploads/` which contains all user-uploaded images which can be quite large. The backup snapshot took a copy of that folder as well, and this results in huge backups. Is it possible to exclude certain folders from the backup?