Wednesday, April 30, 2008
We do need to backup SharePoint
Someone left a comment today on an old post asking about writing batch file scripts to backup Sharepoint 2007. Here is an example of one that I have written:@echo offecho ====================================================echo Backup Script For Office SharePoint Server 2007echo ====================================================@echo offstsadm.exe -o backup -url http://youresite -filename c:\whereyouwanttosavethebackupforyoursitecollection -overwrite@echo offecho completedI run this off of the built in Scheduler on Server 2003 every Monday, Wednesday, and Friday. I have three batch files. I usually have two lines of stsadm.exe command lines, so that I can backup the SSP also. I put the batch files in "C:\program files\common files\Microsoft Shared\web server extensions\12\BIN", so that the files have easy access to Stsadm.exe. I have tested the products before when me or a colleague mess up a page in Sharepoint. We have actually used the restore command in a vpc brought back the sites and gone into Sharepoint Designer to get a single site to port back to the client site. I think that if you are running a Sharepoint Site used by multiple people that you should at least back up your files twice a week. If anyone has any questions please post comments and I will try to get back to you as soon as possible.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment