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?
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/"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With