CFFCS Video Center
Microsoft IIS backup and restore IIS Website Configurations for both Command Prompt and PowerShell
Date: Published:
IIS (Internet Information Services)
Watch on YouTube
Microsoft IIS backup and restore IIS Website Configurations for both Command Prompt and PowerShell
Backup IIS and Restore IIS Website Configuration with Command Prompt and also PowerShell.
CMD
%windir%\system32\inetsrv\appcmd.exe add backup "YOURBACKUPFOLDER"
xcopy "C:\Windows\System32\inetsrv\backup\*" "G:\Backup\IIS Backups" /i /s /y
Restore
appcmd.exe restore backup /stop:true YOURBACKUPFOLDER
PowerShell
Backup-WebConfiguration -Name PS-03-24-2022
Copy-Item "C:\Windows\System32\inetsrv\backup\PS-YOURBACKUPFOLDER" -Destination "G:\Backup\IIS Backups\" -Recurse
Restore
Restore-WebConfiguration -Name PS-YOURBACKUPFOLDER
Thank You
Wayne Barron
CFF Coding Source
https://www.cffcs.com
https://twitter.com/CodingSource
https://www.cffspotlight.com/Coding_Source