CFFCS Video Center

Microsoft IIS backup and restore IIS Website Configurations for both Command Prompt and PowerShell

Date: Published:

Viewing: Microsoft IIS backup and restore IIS Website Configurations for both Command Prompt and PowerShell
IIS (Internet Information Services)

Microsoft IIS backup and restore IIS Website Configurations for both Command Prompt and PowerShell

Watch on YouTube

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

4:08 17,531 Views 81 Likes 9 Comments
Backup IISBackup IIS Website ConfigurationsBackup IIS Website Configurations with CMDBackup IIS Website Configurations with PowerShellBackup IIS with CMDBackup IIS with PowerShellHow to backup and restore IISIIS Website ConfigurationsRestore IISRestore IIS Website ConfigurationsRestore IIS Website Configurations with CMDRestore IIS Website Configurations with PowerShellRestore IIS with CMDRestore IIS with PowerShell