Automating Deletion of Backups in MOSS
Hi Experts, I found the article http://support.microsoft.com/kb/941330(How to automate the deletion of backups in SharePoint Server 2007 and in Windows SharePoint Services 3.0 by using a Visual Basic script). I am not a Script expert so unable to understand what fields need to be edited to get this working. My current requirement is that last 5 backups to be maintained. My current backup plan is as below. Saturday - Full backup Sunday throughMonday differential So I need to maintain a set of Full and follow up differential backups. Appreciate your help on this. I found a link http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.sharepoint.setup_and_administration&tid=67d8192c-1ee3-4910-950a-7b3d23f847ab&cat=&lang=&cr=&sloc=&p=1which serves same purpouse but wanted tomake sure that I have got it correct. Regards Aravind
June 16th, 2008 9:33am

Hi, Any one had this issue before? Regards Aravind
Free Windows Admin Tool Kit Click here and download it now
June 18th, 2008 8:52am

Late reply but I had the same problem and found your thread. Thanks for the link.The script just needs you to pass it parameters on the command line. Code Snippet c:\> BackupCleanUp.vbs 5 \\path\to\backup\dir\spbrtoc.xmlThe 5 is that you want to keep everything up to 5 days old, and the second parameter is the path to the xml file that was created by stsadm when you do the backups.Very handy tool. I setup a scheduled task on Sunday to make a full backup, then use this script to delete everything up to 8 days old. Every other day it does a differential backup.
July 3rd, 2008 4:58pm

Hi Para, Thanks for your email. I found it from lots of trial and errors. Now I am using this tool on regular basis to delete old data....... Cheers Aravind
Free Windows Admin Tool Kit Click here and download it now
July 4th, 2008 9:24am

I tried to run this on MOSS SP2 (Windows Server 2008 SP2) but got runtime error 800A0034:http://yfrog.com/17immagineguji ran on elevated cmd.exe this: BackupCleanUp 1 \\FORESTASERVER\SHAREPOINT_Backup\spbrtoc.xml
February 4th, 2010 8:31pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics