How to delete Windows Server 2016/2012 backups on a server. – wintips.org

If you’re using the Windows Server Backup utility to back up Active Directory or Standalone Server 2016 or 2012, and you’re running out of space on the backup disk (target) due to multiple backups, continue reading this eat article.

The Windows Server Backup tool allows administrators to perform a full backup of all Server data, including the Operating System, installed applications, and all Active Directory-related data (system state backup), to recover from a server failure will give. to the same or another server (Bare Metal Recovery Backup).

However, Windows Server Backup cannot automatically manage space when backing up system state, and as a result, you may run out of space over time, with the error:

Windows Backup encountered an error writing to the backup target. Detailed error: Not enough disk space.” *

*Note: To find out the number of backups and the space used, open the Windows Server Backup Utility and look at the “Target Usage” section.

How to delete Windows Server backups in Server 2016/2012

This guide details how to delete old system state backups or full backups (file(s), program(s), bare metal recovery, system state) in Windows Server 2016 or Server 2012 you will find instructions. .

How to delete Windows Server 2012/2016 backups on a server.

1. First, go ahead and list all available Windows Server backups and their types (system state or full):

*Note: If you want to view existing backups in another folder (disk). type:

  • Get wbadmin -backupTarget versions:Drive_Letter:\

For example, if you want to see the backups on the G: drive, type:

    • Get wbadmin -backupTarget versions:G:\

get wbadmin versions

2. Now look under “Can be restored”, depending on the type of backup you have (system state or full) and the type of Windows Server backup you want to delete, do the following:

A. If you want to delete a System status backup (1), go to Part 1.

B. If you want to delete a Full stock (2), pass Part 2.

image

Part 1. Delete Windows Server System State Backups (Server 2012 & 2016).
Part 2. Delete Windows Server Full Backups (Server 2012 and 2016).

Part 1. How to delete system state backups in Server 2016/2012.

To delete system state backups, you can use the “WBADMIN DELETE SYSTEMSTATEBACKUP” command with the following parameters:

-keepVersions: | -version: | -Delete the oldest
-backupTarget:
-car:
– quiet

Examples *

*Note: It’s open Command line as administrator.

A. To delete the OLDEST system state backupwrite:

  • wbadmin delete systemstatebackup -deleteOldest

Note: To delete the oldest system state backup stored on the G: drive, type:

  • wbadmin delete systemstatebackup -backupTarget:f:\ -deleteOldest

delete the oldest system state backup

B. TO DELETE ALL OF THE 10 (10) MOST RECENT SYSTEM STATE BACKUPS: *

  • wbadmin disable systemstatebackup -keepVersions:10

*Notes:
1.
Change the number “10” in the above command according to the latest versions you want to keep.
2. To delete all but the last ten system backups on the G: drive, type:

  • wbadmin shutdown systemstatebackup -backupTarget:f:\ -keepVersions:10

wbadmin shutdown systemstatebackup -keepversions

C. To delete a CUSTOM SYSTEM STATE backup:

1. See The version identifier Find the system state backup you want to delete.

delete a specific system state backup

2. To delete a custom version of the system state backup, issue the following command:

  • wbadmin disable systemstatebackup -version:The version identifier

For example, if you want to delete a system state backup that was created on November 10, 2018 at 12:12 PM, type:

  • wbadmin delete systemstatebackup -version: 10/11/2018-12:12

image

D. To delete ALL SYSTEM STATE backups: *

  • wbadmin shutdown systemstatebackup -keepVersions: 0

*Note: Deleting all system state backups is not recommended.

delete all system state backups

Part 2. How to delete full backups with the WBADMIN command.

To delete full backups, you can use the “WBADMIN DELETE BACKUP” command with the following parameters:

-keepVersions: | -version: | -Delete the oldest
-backupTarget:
-car:
– quiet

Examples: *

*Note: It’s open Command line as administrator.

A. MOST REQUIRED to Delete a Full Backup with the wbadmin command:

  • wbadmin delete backup -deleteOldest

delete the oldest full backup

B. To delete ALL full backups from the 10 (10) MOST RECENT: *

  • disable wbadmin backup -keepVersions:10

*Note: Change the number “10” in the above command according to the latest versions you want to keep.

delete a full server backup

C. CUSTOM To delete a full backup:

1. See The version identifier Find the Full Backup you want to delete under

2. To delete a custom version of a full backup, issue the following command:

  • wbadmin delete backup -version:The version identifier

For example, if you want to delete a system state backup that was created on July 3, 2019 at 06:43, enter:

  • wbadmin delete backup -version: 03/07/2019-06:43

wbadmin delete backup -version: Version-id

D. To delete ALL full backups: *

  • wbadmin disable backup -keepVersions: 0

*Note: Deleting full backups is not recommended.

image

That’s it! Let me know if this guide helped you by leaving a comment about your experience. Please like and share this guide to help others.

If you found this article useful, please support us by donating. Even $1 can make a big difference for us We continue to help others while keeping this site free:

Leave a Comment