views:

29

answers:

1

I'm creating a backup strategy for a sharepoint server I'm setting up.

Have got a backup running daily.

In the long term I'd like to keep:

* Daily backups for the last week.
* Weekly backups for the last month.
* Monthly backups for the last year.
* Yearly backups.

If I was writing in bash/cygwin I would find it fairly easy to write a script to purge backups that are not required by this strategy. However I would rather not have to install cygwin, I'd rather do it with native DOS scripting, or some other specialized tool.

My DOS scripting skills are very primitive, so I was wondering if anyone else had a similar script/util I could use.

Cheers!

A: 

You could use PowerShell to achieve a rather compelx backup procedure. Or you could write the script in Python or another executable scripting language.

PowerShell can be convoluted at first, but it's basically Batch Scripts on crack with access to the .NET Runtime.


Note: PowerShell I believe is only availiable on 2003, Vista, Windows 7 (I know it comes with them, at least, it may work with XP/2000, but im not sure). Python can be installed on prettymuch anything.

Aren