Dopo aver citato la 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 in un articolo precedente, ed aver verificato personalmente che presentava alcuni errori durante l'esecuzione, abbiamo provveduto a correggerla.
E' passata dalla Revision 1.1 alla 1.2 nonostante la data di Latest Review non sia mutata. Da sottolineare la nota seguente nella KB: Warning Use of the code in this article is at your own risk. Poichè vengono cancellati file in una cartella di backup si tratta pur sempre di una operazione potenzialmente pericolosa che va monitorata. Ricordo inoltre:
Note You must have sufficient permissions to perform this procedure. Typically, deleting backups should be performed by a member of the Local Administrator group on the computer that contains the shared folder for the backups. In any case, the person who runs the script must have Read permissions, Write permissions, and Delete permissions to the shared folder for the backups and to the backup files that are to be deleted. Sintassi: BackupCleanUp.vbs 3 C:\backup\spbrtoc.xml (deve esserci il path completo dell’xml) Dove "3" è il numero di giorni entro i quali i backup verranno mantenuti.