Hello,
looked over forum threads and msdn articles but didn't found one clear solution to for my task.
I got 3 web server:
- Server Web1
- Server Web2
- and backup server WebBackup
All 3 server are running IIS7.5 with a set of different sites.
I want to fully syncronize Web1 and Web2 sites to WebBackup on a daily basis. It is also needed to alter connection strings hardcoded in every site's web.config with own values(as the server name is changed) and to change the user used to authorize every website in IIS.
MSSQL databases are mirrored so there is no need to transfer them every sync iteration.
And now i'm stuck with keeping the backup of 2 servers simultaneously. I mean after every sync process WebBackup's IIS contain only the sites from last syncronization and deleting the other sites.
Is it possible at all to backup two different IISes onto one?
As the sites' list is varying from time to time i'm not enumeration all the websites and doing a full copy like:
msdeploy.exe -verb:sync -dest:appPoolconfig -source:appPoolConfig,computerName={IP},username={username},password={pass},authType=NTLM > pool.syncing.log
C:\"Program Files\IIS\Microsoft Web Deploy V3"\msdeploy.exe -verb:sync -dest:appHostconfig -source:appHostConfig,computerName={IP},username={username},password={pass} > host.syncing.log
After this i didn't found a suitable cmd-line webdeploy manual to perform connection string alteration inside the transferred file. Is this also possible to do?
p.s. If it is not best way to backup web server please advice me a better way. Your help is very appreciated, thank you in advance!