Windows 2008: More on automated command line backups

If you have implemented a script as per my previous post, and find it tedious to manually delete your old backups, or find that space is at a premium, you can also include a line into your script to delete old backups.

The command to delete old backups is structured as follows:

wbadmin delete systemstatebackup
{-keepVersions: | -version: | -deleteOldest}

Explanations of all parameters here.

I use the following line:

wbadmin delete systemstatebackup -keepVersions:1 –quiet

This will delete all backups other than the last one.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s