Save 10%Pay yearly on any plan. 6% half-yearly, 3% quarterly. Help centreWhatsAppTelegram TeamsOpen a ticket

Windows Server Backup: How to Back Up and Restore a Windows Server

Windows Server includes a backup tool. Install it, run a one-off and a scheduled backup, restore files or the whole server, and know the limits of the tool.

4 min readBy Smita

Reviewed by the AmazingRDP technical team

Windows Server backup and recovery

A Windows server with full administrator access, where backups are yours to set up. See Windows VPS from $8.99

Windows Server ships with a backup program called Windows Server Backup. It is not installed by default, costs nothing, and covers the basic job well: copies of files, volumes or the whole system on a schedule, and a way to bring them back, including onto a new, empty machine. This page shows how to use it and where it stops being enough. The wider picture, including the difference between backup types and where to keep copies, is in server backup methods.

Install the feature

In PowerShell as administrator:

Install-WindowsFeature Windows-Server-Backup

Or in Server Manager: Manage, Add Roles and Features, Features, tick Windows Server Backup. Open the console afterwards with wbadmin.msc.

What can be backed up

ChoiceContainsLets you restore
Full serverAll volumesEverything, including to new hardware
Bare metal recoveryThe volumes Windows needs to startThe whole system onto an empty disk
System stateRegistry, boot files, Active Directory and similarThe server's configuration and roles
Volumes, folders, filesWhat you pickThose items

Where the backup can go

DestinationKeeps historyNote
A disk dedicated to backupsYes, many versionsThe tool formats the disk and manages it
A volumeYesShares the disk with other data
A network shareNo: each backup replaces the previous oneSimple, but there is only ever one version

A backup on a second volume of the same server protects against deleted files and a broken Windows. It does not protect against the loss of the server. Copy it elsewhere as well.

A one-off backup

  1. In the console, click Backup Once on the right.
  2. Choose Different options, then Full server or Custom.
  3. Pick the destination and start.

The same from the command line:

wbadmin start backup -backupTarget:E: -include:C: -allCritical -quiet
wbadmin start backup -backupTarget:\\nas\backups -include:D:\Data -quiet

-allCritical adds everything needed for a bare metal recovery.

A scheduled backup

  1. Click Backup Schedule.
  2. Choose what to back up.
  3. Choose once a day or several times, and the hours. Night is usual.
  4. Choose the destination. For a dedicated disk, the wizard warns that it will be formatted.
  5. Finish.

After the first full copy, later runs store only changed blocks, so they are quick and small.

Check that it worked

wbadmin get versions
Get-WinEvent -LogName Microsoft-Windows-Backup -MaxEvents 5 | Format-List TimeCreated, Message

The console's main page shows the last result as well. A schedule that failed three months ago and that nobody looked at is the usual way backups turn out to be missing.

Restoring

Files and folders

  1. Click Recover.
  2. Choose where the backup is, then the date and time.
  3. Choose Files and folders, select them, and decide whether to restore to the original place or another, and what to do with existing files.

The whole server

  1. Start the server from Windows Server installation media, or into the recovery environment.
  2. Choose Repair your computer, Troubleshoot, System Image Recovery.
  3. Point it at the backup and follow the wizard.

On a rented server this needs the provider's console and a way to start from installation media; ask how that works on your plan before you depend on it. Often the practical route is different: reinstall the system from the control panel (how), then restore your data and settings from the backup.

The limits of the tool

  • No central view. Each server is managed separately.
  • One version only on network shares.
  • Little control over retention. Old versions are removed automatically when the disk fills.
  • No built-in copy to cloud storage, and no encryption of the backup by the tool itself; protect the destination.
  • Applications: it handles those that cooperate with Windows' snapshot service. For databases, also use the database's own backup.

When these limits bite, people move to dedicated backup software. For a single small server, the built-in tool plus a second copy elsewhere is a sound start.

A second copy elsewhere

Use Robocopy in a scheduled task to mirror important folders to another machine or storage service:

robocopy D:\Data \\nas\copy\Data /MIR /R:2 /W:5 /LOG:C:\Logs\robocopy.log

/MIR makes the copy identical to the source, deletions included, so it is a second copy and not a history. Keep versions with the backup tool and distance with the copy.

Shadow copies are not backups

"Previous Versions" on a volume let users pull back yesterday's file with a right-click. They live on the same disk and vanish with it, and ransomware deletes them first. Useful, but no substitute.

Recovering without a backup

If a file is gone and there is no backup, recovery tools sometimes help, the sooner the better: data recovery tools for Windows Server.

On our plans

  • Shared RDP: you cannot install or run server backup. Keep copies of your own files on your own computer.
  • VPS and dedicated servers: you are the administrator, and backups are your responsibility. Check that the plan's disk has room for a backup volume, or send backups to storage elsewhere.

Security belongs with backups: ten RDP security checks. Servers with full administrator access: Windows VPS.

Questions

Does Windows Server have a built-in backup tool?

Yes. Windows Server Backup is a free feature you add with Install-WindowsFeature Windows-Server-Backup.

How do I back up a Windows Server from the command line?

With wbadmin start backup, giving a target and what to include, for example -backupTarget:E: -include:C: -allCritical.

Can Windows Server Backup keep several versions on a network share?

No. On a network share each backup overwrites the previous one. Use a dedicated disk or volume for history.

How do I restore a single file?

In the console choose Recover, pick the backup date, choose Files and folders, and select the file.