Wednesday, January 28, 2009

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:<No. of copies> | -version:<VersionIdentifier> | -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.

No comments:

Related Posts with Thumbnails