IIS 7 and Above
IIS Config Backup not working
Last post Aug 01, 2020 08:38 PM by lextm
Aug 01, 2020 09:04 AM|Satyam777|LINK
Hi, I am having trouble restoring the IIS backup. I have 300+ sites on my IIS in windows 2016 server. I saw a blog post for backup of config file using "appcmd add backup" command in "inetsvr". Everything goes fine, I can take the backup, I can restore the
backup to the new server. When I check IIS in a new server, it shows all the sites with configuration, but the problem is none of the sites works when I open them in the browser. Can you help me what am I doing wrong?
Aug 01, 2020 03:09 PM|lextm|LINK
I can take the backup, I can restore the backup to the new server.
Nope. That's the wrong approach as the backup is meant for the original machine only.
the problem is none of the sites works when I open them in the browser
That's expected, as you cannot fully restore a server from merely the backup.
To actually move sites from one machine to another, Microsoft gives you the option of Web Deploy,
Aug 01, 2020 03:23 PM|Satyam777|LINK
Hi, thanks for replying. What I meant by the new server is that I have to format my current server and reload the OS and then reconfigure IIS again. Is that possible by the synchronization link you shared? There is a way of package file in that post, will
Aug 01, 2020 08:38 PM|lextm|LINK
I have to format my current server and reload the OS and then reconfigure IIS again.
That's also a horrible approach. Most companies have a proper backup plan to store periodical backup of their machines, and at emergency they can restore from those machine backups. IIS is usually part of such machine wide backup, so you don't even need
to backup/restore IIS as a separate process.
In your case, you should assume that you have lost everything, and merely the applicationHost.config backup won't help much. A lot of manual work is going to be required to restore each sites (both settings and contents). Web Deploy won't help either, as
you lost the original sites.