Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

automatic backup for web deploy 3 (IIS) - to exclude folders in the backup

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?

like image 929
Karl Cassar Avatar asked Jul 15 '14 11:07

Karl Cassar


1 Answers

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/"

like image 63
Bas van Stein Avatar answered Sep 22 '22 02:09

Bas van Stein