-
Notifications
You must be signed in to change notification settings - Fork 0
Example 2
Johan Leino edited this page Aug 6, 2013
·
3 revisions
Note: This example assumes you have all the files in the same directory (.\). That is not at all a requirement though.
This example shows how to backup an IIS site/application on a remote server.
Import-Module .\WDP.Backup.psm1
Set-Properties @{
SourcePublishSettingsFiles = @(".\serverA.publishsettings")
}
Invoke-Backup
Important!!
In this situation, where no IIS application is specified as parameter to Invoke-Backup
, the .publishsettings file need to include that information instead, like this:
The IIS site/application name is contained within the serverA.publishsettings
file as well as connection information for that remote server.
If you'd like to backup multiple sites you just have to supply multiple 'SourcePublishSettings' files:
Set-Properties @{
SourcePublishSettingsFiles = @(".\serverA.publishsettings", ".\serverB.publishsettings")
}
...one per location.