Quantcast
Channel: Web Deployment Tool (MS Deploy)
Viewing all articles
Browse latest Browse all 565

Question about command line sync

$
0
0

Does anyone know what command is actually being kicked off then you do an Export Server Package from within IIS?  I am trying to script an automatic backup of the web server and on servers with IIS 4.0 when I do it via command line with this command

%_msdeploy% -verb:sync -source:webServer,computerName=%computername% -dest:package='%_BUdir%\%computername%_%date:~-4,4%%date:~-7,2%%date:~-10,2%.zip',EncryptPassword=%_EncryptPass%

or this command

%_msdeploy% -verb:sync -source:appHostConfig='%%G',computerName=%computername% -dest:package='%_BUdir%\%%G_%date:~-4,4%%date:~-7,2%%date:~-10,2%.zip',EncryptPassword=%_EncryptPass% -enableLink:AppPoolExtension

For whatever reason when I run that command on a box with .net 4.0 installed when I try to restore from that backup I get issues with incompatible frameworks even on the same server (and yes I messed around extensively with the config files) I don't have this issue on servers that don't have .net 4.0 installed.  However when I do the export server package from within IIS I don't have this issue at all. And on top of that the zip file generated from the Export is larger than the zip file generated from the command line .. so I must be missing something :)

Thank you for any help that can be given :)


Viewing all articles
Browse latest Browse all 565


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>