How do I specify Windows Server backup retention period?
"Hi Folks, I've been testing Windows Server Backup recently and got asked a question today about retention policy which got me thinking. ie. can you limit the number of backups, for example I wish to keep a rolling 60 day backup window. The literature I've gone through so far basically says it will start deleting old ones when it starts running out of space. As far as I'm concerned this is not a good thing as your HDD will just fill up with old unrequired data. Is it possible to set this via command prompt or in the registry somewhere?"
As you said, Windows Server Backup only delete old backup versions when there is not enough space for a new backup, you cannot specify the number of backup versions to keep or delete by time (ie: daily/weekly/monthly), etc. In this case, you can choose to delete old backup manually with Wbadmin command or use a third-party backup software to customize Windows Server backup retention policy.
About Windows Server Backup Retention Policy
Windows Server Backup uses an automatic disk usage management function as a backup retention policy to delete old backup versions when there is not enough space for the current backup. The retention policy is a certain rule to determine which backups to delete. How does it work?
Windows Server Backup will create a shadow copy of the backup volume after a new backup is complete and saves the backup versions in local volume shadow copies if there is enough space. If not, Windows Server Backup will first determine if shrinking the diff area can make the new backup happen and then shrink or not. Also, if the diff area is about 1/8 of the backup volume size, the backup will not be created.
How to delete old backup manually using Wbadmin command line
Sometimes, you may find the Windows Server Backup not deleting old backups due to the limitation of the automatic disk usage management function. In this case, you can use WBadmin delete backup to manually delete old backups to free up space. By using it, you can delete specific version(s) with "-version" parameters, delete all backups but the specified versions, delete the oldest backup.
🧊 To delete system state backup, you can use wbadmin delete systemstatebackup plus one of previous mentioned 3 parameters. For example, to delete all the system backups but the specified one “3”, you could type the following command in the command prompt window.
- wbadmin delete systemstatebackup -keepVersions:3
🧊 To delete non-system state backup, you could use Wbadmin delete backup command. For example, to delete old backups in Windows Server 2012 that were taken on May the fourth evening at18:25, type the following command and hit Enter.
- Wbadmin delete backup -version: 05/04/2015-18:25 -backupTarget: G: machine: Win-9814GD4FH95
Flexible way to specify Windows Server backup retention policy (Best Practices)
To make backup retention policy best practices in Windows Server, you can use a professional server backup software - AOMEI Backupper Server. It combines the backup feature and retention policy together, so you don't need to manually delete old backups to free up disk space.
And it allows you to customize the retention policy per your needs by providing 3 ways, namely, By quality, By time, By daily/weekly/monthly. Windows Server 2003, 2008, 2011, 2012, 2016, 2019, 2022 (including R2), SBS 2003, 2008, 2011 and Windows PC systems are supported.
- ★ In addition, there are useful backup features to make your task flexible and automatic:
- It allows you to backup system, files, partitions, and disks to any locations shown in File Explorer (including network location).
- It enables you to set daily/weekly/monthly scheduled backup.
- It provides you 3 backup methods: full/incremental/differential backup. And the last two method is able to backup only changed data instead of everything.
- Besides, you can set up an email notification to notify you whether the backup is complete or failed, compress backup image with normal or high compression level to save backup time and disk space, etc.
Then, please download the 30-day free-trial version to have a try! And you don't need to pay for specifying Windows Server backup retention period before deciding.
1. Launch server backup software - AOMEI Backupper, then you can see four types of backup under the Backup tab. Select System Backup here as an example.
2. Since the program will include the system-related items into the backup automatically, you just need to click the marked box to select where you want to put the image backups.
3. Click "Options", "Schedule", "Scheme" to well configure your backup task and free you from backup issues, such as, manual backup and insufficient disk space.
>>> First, click "Options" button to access the Backup Settings window. Then, you can set email notification, enable encryption for backups, intelligent sectors backup, VSS, compression level, etc.
>>> Then, click on the “Schedule” button down the window and select schedule settings from the marked box.
- Daily/Weekly/Monthly: It will backup all of your data in Windows Server continually and automatically once you set the schedule backup, you don't need to worry about data loss due to forgetting to backup.
- Event Triggers: You could trigger the backup event by the following events: User logon, User logoff, System startup, System shutdown.
- USB plug in: Once detecting the source or destination USB device of the task is plugged in, AOMEI Backupper will automatically back up the data on the USB or backup local data to USB device. It’s kind of simple and flexible.
>>> Then, click Scheme to set backup methods and backup retention policy. Select Incremental Backup or Differential Backup to backup only changed files under the Backup Methods. Next, turn on Enable Automatic Backup Cleanup and select the way to delete old backup image, By quality, By time, By daily/weekly/monthly.
5. At last, click Start Backup to make this backup and retention on schedule.
If your server happens to be in a serious situation, you can easily restore your server to an earlier state, and restore to dissimilar hardware is also supported. As a conclusion, if you are not comfortable with the Windows Server Backup retention policy, AOMEI Backupper is your best backup program for your Windows Server 2008/2012/2016/2019.
Now you know the Windows Server backup retention period policy and backup retention policy best practices - configure schedule backup and retention in a professional server backup software with graphic user interface. With AOMEI Backupper Server, you can set backup task and retention policy together during the backup process. And it allows you to specify how to delete backups in your desired way instead of deleting when there is not enough space for new backup.
Besides backup and retention, you can still use it as file sync software to transfer files from one location to another, such as, sync files between computer and flash drive, sync local folder to OneDrive, synchronize files between Windows Servers, etc. Also, real time file sync, mirror sync, two-way sync are supported.
If you want to protect unlimited PCs and servers within your company, AOMEI Backupper Technician Plus will be a great choice. In addition to unlimited usage, it still offers unlimited billable technical services to clients and more advanced features, such as, Create Portable Version.