6. ARGUMENTS
-verb:<verbName>
Specifies a Web Deploy verb. A verb determines the
action to be taken on a source or destination object.
<verbName> must be one of the
following: delete, dump, getDependencies, getSyste
mInfo, or sync.
The sync verb requires both the -source and -
dest arguments.
The delete verb requires only the -dest argument.
6
7. ARGUMENTS
-source:<provider>
Specifies the source of the data for the verb argument.
source is a required argument for
the sync and dump operations, but not delete.
-dest: <provider>
Specifies the destination of a synchronization operation.
The destination argument is required only if
the sync or delete verb is specified.
7
19. SYNC
Sync local server to remote server
msdeploy -verb:sync -source:webServer -
dest:webServer,computerName=<DestServer>
Sync remote server to local server
msdeploy -verb:sync -
source:webServer,computerName=<SourceServer> -
dest:webServer
Sync remote server to remote server
msdeploy -verb:sync -
source:webServer,computerName=<SourceServer> -
dest:webServer,computerName=<DestServer>
19
20. SYNC
Sync remote app pool to remote app pool
msdeploy –verb:sync –
source:appPoolConfig="<SourceSite>",computerName=
<SourceServer> -
dest :appPoolConfig="<DestSite>",computerName=<De
stServer>
Sync remote site to remote site
msdeploy –verb:sync –
source:appHostConfig="<SourceSite>",computerName=
<SourceServer> –
dest :appHostConfig="<DestSite>",computerName=<De
stServer>
20
21. SYNC
Sync local package to local site
msdeploy -verb:sync -source:package=<Package> -
dest:appHostConfig="<DestSite>"
21
22. SYNC
Sync local package to remote site
msdeploy -verb:sync -source:package=<Package> -
dest:appHostConfig="<SourceSite>",computerName=<
SourceServer>
22
23. SYNC
Sync local site to local package
msdeploy -verb:sync -
source:appHostConfig="<SourceSite>" -dest:
package=<Package>
23
24. SYNC
Sync remote site to local package
msdeploy -verb:sync -
source:appHostConfig="<SourceSite>",computerName=
<SourceServer> -dest: package=<Package>
24
25. SYNC
25
Backup local site
msdeploy.exe -verb:sync -source:backupManager -
dest:backupManager=<DestSite>