Archive for September, 2007

Writing a Batch File to Run Back Ups

Wednesday, September 26th, 2007

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 off
echo ====================================================
echo Backup Script For Office SharePoint Server 2007
echo ====================================================
@echo off
stsadm.exe -o backup -url http://youresite -filename c:whereyouwanttosavethebackupforyoursitecollection -overwrite
@echo off
echo completed

 I 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 filescommon filesMicrosoft Sharedweb server extensions12BIN", 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.
 

Error Messages 6398, 6482, and 7076

Wednesday, September 26th, 2007

For weeks I have been dealing with google and researching MS hotfixes to get rid of the above errors in the event log.  Everyday it drove me completely insane that I could not find a fix.  Then one day I find this .Net 2.0 hotfix for remote servers.  I asked the client to obtain the hotfix for me and I tried testing it in a VPC.  It would not install the hotfix, because it stated that the component needed did not exist.  I was back to square one, so I started poking around Central Administration yesterday.  I looked in the "Timer Job Definitions".  For some reason every single content deployment job and backup job for one time use that was ever created in Sharepoint still existed in this area.  I went through and deleted each job and all my error messages disappeared.  For anyone having this same problem look in your timer job definitions and see if Sharepoint is still running one time use jobs.  It will help you out a bunch in the long run.  There is probably another hotfix for this problem, but I have requested at least 3 to 4 hotfixes in the past two weeks and need a hotfix break for now.  I am still holding out that we will get a service pack in the near future to fix any issues anyone has run across in MOSS.

Where I've Been…

Monday, September 24th, 2007

Two Weeks ago was Rosh Hashanah, which is the Jewish New Year for anyone who does not know.  Basically, I went to synagogue on Wednesday and Thursday night of that week, so I was incomunicato for that period of time.  Then the preceding day I went under and had six teeth removed, so that I can get my rubberbands on October 2nd and my teeth can start to move.  In the past week I've had a lot of pain due to the removal and do to the changes of space after the removal.  I am noticing that my teeth are actually moving somewhat.  I am going to try and post a little bit more if I have the time in between work and World of Warcraft playing.

I am working on a really cool project right now that deals with CAML Queries and list filtering and searching with a colleague of mine.  I wrote a piece that started out searching the list and posting it into SPGridView.  In the past week he tied all this information into his webpart that searches a list of specific names and then filters the list down based on what name is chosen.  I might write up an example in the upcoming weeks using this example: http://blogs.msdn.com/powlo/archive/2007/02/25/displaying-custom-data-through-sharepoint-lists-using-spgridview-and-spmenufield.aspx and showing you guys how it would pertain to a list search.  I will keep you posted on the progress.  For those that just celebrated Rosh Hashanah and Yom Kippur: Shanah Tova U'Mitukah!  For those who are celebrating Ramadan have a good fast.  For those celebrating anything else that I am missing happy (insert holiday)!

 

Upcoming WCM Book

Wednesday, September 5th, 2007

I was messing around with Content Deployment a month ago and having all types of issues.  I noticed that Spencer Harbar and Andrew Connell are writing a book as eluded in this blog post by Spencer Harbar: http://www.harbar.net/archive/2007/09/05/Yup-were-doing-a-SharePoint-WCM-book.aspx.  I looked at there Amazon Website and noticed that they are going to cover Content Deployment in the book.  I wonder if there will be extensive details on how to use it without bugging out like I did.  I am researching hotfix packages for the many content deployment errors as I wait for my meeting.  I will post any detailed information if I find something that fixes any content deployment issues. 

Toying Around with Search and Document Libraries

Tuesday, September 4th, 2007

Right now I have been playing around with search in document libraries and dabbling a bit with custom forms.  Well first off in custom forms I am having trouble with this web service and I had a little trouble with the sql database.  My colleague had to create a new custom form and then create a data connection, because out of 4 forms I could not get it to work.  We still had to hide the old edit form view in the application.  If you look back into my edit form problems you will notice that it would default back to the main Sharepoint Site if you do not keep that main form in there.  Right now my other problems stem from how they want the search to look.  I created that advance search webpart with some custom properties and edited the metadata properties.  It turns out that may not be exactly what they want and my deadline is now bumped to September 26th from sometime in October.  I am going to find out more criteria tomorrow, but I promise I will post more information by the end of the week on what I am going to do.  It may be something far more interesting than using the custom metadata properties and may help me in the long run to learn something new.  I hope that everyone had a good holiday and I will catch you all later.