通过WebDeploy部署时,我已成功设置了自动备份。
但是,当它存档时,它会压缩整个“默认网站”。
我正在寻找的是一种将自动备份设置为仅归档该应用程序的方法。
Update1 :我的当前设置
PS> Get-BackupSettings -SiteName“默认网站/ Service1”
CanSetContinueSyncOnFailure : False ExcludedProviders : {appPoolEnable32Bit, setAcl, appPoolPipeline, createApp...} BackupPath : {SitePathParent}\{siteName}_snapshots ContinueSyncOnFailure : False CanAddExcludedProviders : False NumberOfBackups : 5 Enabled : True SiteName : Default Web Site/Service1 CanSetEnabled : False CanSetNumberOfBackups : False
PS> Get-BackupSettings -SiteName“默认网站”
CanSetContinueSyncOnFailure : False ExcludedProviders : {appPoolEnable32Bit, setAcl, appPoolPipeline, createApp...} BackupPath : {SitePathParent}\{siteName}_snapshots ContinueSyncOnFailure : False CanAddExcludedProviders : False NumberOfBackups : 5 Enabled : False SiteName : Default Web Site CanSetEnabled : False CanSetNumberOfBackups : False
PS>得到-BackupSettings
CanSetContinueSyncOnFailure : False ExcludedProviders : {appPoolEnable32Bit, setAcl, appPoolPipeline, createApp...} BackupPath : {SitePathParent}\{siteName}_snapshots ContinueSyncOnFailure : False CanAddExcludedProviders : False NumberOfBackups : 5 Enabled : True SiteName : CanSetEnabled : False CanSetNumberOfBackups : False