Skip to main content
Trans Am

Todd Klindt's Blog

Go Search
Home
Blog
Reviews
Mycadm
Link
  

 Sharepoint Blog List

  Cornelius J. van Dyk [MVP]
  Joel Oleson
  Bill Simser [MVP]
  Bob Fox [MVP]
  Ben Curry [MVP]
  Andrew Connell [MVP]
  Bill English [MVP]
  SharePoint Team Blog
  Keith Bunge
  Michael Noel [MVP]
  Shane Young [MVP]
  Dustin Miller [MVP]

 Free SharePoint software

  WSS with SP1
  Search Server Express
  MOSS with SP1 trial install
  WSS SDK
  MOSS SDK
  Community Kit for SharePoint
  Governance pack
  SharePoint 2007 Features
  SharePoint Debugger
  World clock Web Part
  Gary Lapointe's STSADM extensions
  STSADM Extension template
  Visual Studio 2005 Extensions
  MOSS VHD download
  Davcopy
  Deployment Wizard
Todd Klindt's home page > Todd Klindt's Blog
What's going on with TK.
Renewed!
Thankfully my MVP status was renewed for another year.  Thanks to everyone that's contributed to my blog or let me speak at their gatherings.  I really appreciate it.
 
tk
See me in person!
I'll be presenting at the Iowa Dot Net UG tomorrow night.  If you're local, come on down.  I'm trying to spin up some SharePoint excitement there, so come on down and help out.
 
tk
Slides from TechEd
Sorry for the late post, but here are the slide decks from TechEd '08 in Orlando.  I had a great time, and met a lot of great people.   Thanks guys.
 
 
(this has the SharePoint conference template, but it's the same slides.)
 
Again, thanks for the great times everyone.  I hope to see you all again.
 
tk
Heading to TechEd
Tomorrow I'm flying to Orlando for TechEd IT Pro.  Here's a rundown of the sessions I'll be presenting:
 
 
IT Conference OFC59-TLC Administering Microsoft SharePoint Products and Technologies 2007 Using a Command-Line Interface: STSADM.EXE
Session Day/Time: 6/11/2008 10:15AM-11:30AM
Room: Green Theater 1
 
IT Conference OFC55-TLC Ask the Experts: SharePoint Panel - Meet the SharePoint Consultants and Architects
Session Day/Time: 6/12/2008 12:00PM-12:45PM
Room: Green Theater 1
 
IT Conference PRC20 SharePoint Upgrade: Hands-on Guidance, Best Practices, and Techniques
Session Day/Time: 6/9/2008 9:30AM-6:00PM
Room: N210 E
 
IT Conference OFC378 How to Take SharePoint Administration to The Next Level With Windows 2008 and SQL 2008
Session Day/Time: 6/13/2008 2:45PM-4:00PM
Room: N310 A
 
IT Conference OFC357 How to Plan for SharePoint Storage Management for Multi-Terabyte Deployment
Session Day/Time: 6/13/2008 4:30PM-5:45PM
Room: S220 E
 
IT Conference OFC350 Monitoring Strategies for Microsoft SharePoint Server in the Enterprise
Session Day/Time: 6/12/2008 10:15AM-11:30AM
Room: S320 E

If you see me in the crowd, say Hi.  I'm this goofy looking guy:

me

See you in Orlando.

tk

 

Saving multiple STSADM backups

A reader asked in a comment how to script STSADM backups and be able to keep multiple copies. He's using a command like this:

Stsadm.exe –o backup –url http://www.toddklindt.com –filename tk.stsadm -overwrite

Or

Stsadm.exe –o export –url http://www.toddklindt.com/blog -filename tk-blog.cmp –overwrite

 

He wants to keep more than one instance of the backups, in case someone deletes something and they don't get back to you right away. I have a great way to work around this. Windows has an environment variable that is equal to the date. We can start with this. It's not in a good format, so we'll have to tweak it some:

For one, the backslashes will cause us problems in the file system. Second, leading with the day of the week will not sort very well. What we want is something along the lines of YYMMDD. Fortunately there is a way to parse through variables to get snippets of the information. While this is documented in the SET command, it works fine without it. To get the full skinny type set /? at a Command Prompt to get the full usage. Set has a lot of usage, but here's the part we care about:

We can use this approach to pull out the parts of the %date% variable that we want. Here's what the command would look like:

 

The string "%date:~-2%%date:~4,2%%date:~7,2%" turns into YYMMDD. The first part "%date:~-2%" says 'start at the end and take the last two characters.' The next part, "%date:~4,2%" says 'skip the first four characters and give me the next 2'. The last part, "%date:~7,2%" says 'skip the first seven characters and give me the next 2.' You put all that together and you get YYMMDD. Now just couple that with your STSADM command and you're all set. It would look something like this:

 

I included a filename with spaces to demonstrate how to take care of that. Pretty slick, huh? I can hear some people out there saying, "That's great, but now my drive is going to get full of backups. Some help you turned out to be!" Settle down, I've got the fix for that too. Another built in command FORFILES will fix that right up. Add the following line to your scheduled script:

forfiles /d -7 /m *.stsadm /c "cmd /c del @file"

That command will delete all files that end in .stsadm that are more than seven days old. Now you can keep exactly as many backups of your sites or webs as you want.

Handy?

Thanks to the reader that asked.

tk

 

 

 

See me at TechEd

I'll be presenting a few sessions at TechEd IT Forum in Orlando this summer. This is your chance to see me in the flesh. I'll be doing some sessions on administration and helping Shane Young with a pre-conference class. There's an early bird discount if you sign up before May 2nd, so head over to the TechEd Site and get signed up.

Change is in the air

As some of you know I've been pretty busy the last couple of weeks traveling. Because of that I haven't been able to share some great news with you all. I've changed jobs, now I'm working with some buddies at Solanite Consulting. I worked with three of the four other employees at UGS and they're a lot of fun. We do SharePoint consulting, so if you need some extra SharePoint muscle, let me know.

tk

Dubai is a wrap
Wow, has it been a busy and exciting two days.  First off, I'd like to thank everyone that I talked to while at the conference.  You made me feel very welcome and at home.  I look forward to hearing from you again.  I had a wonderful time here and I'm so glad I was asked to come over.  This was a time I won't soon forget.  A special shoutout goes to to Mo, Bander, Alex, Mohammad, Adnan, and the guy from Avepoint whose name escapes me at the moment.  We did a lot of funs things in the last few days.
 
Tomorrow the gang is off to Istanbul to spread the good word about SharePoint there.  If it's half as much fun as Dubai was it will be amazing.
 
Oh, I almost forget.  Here are the slides for my STSADM session as well as the scripts.  Here is the slides for my SQL session.  A few people were asking for them.  Enjoy.
 
tk
On my way to Dubai
In a moment I'll be shutting this laptop off, throwing it in my bag and heading to the airport.  I'm flying to Dubai to speak at the Microsoft SharePoint Conference.  If you're in the area, stop by and say Hi.  I'll be spending three days there, and four days in Istanbul speaking at the SharePoint conference there too.  I usually take advantage of those long, long flights by writing up some content for my blog.  Hopefully once I get over there I'll have some new stuff to post for you all.
 
I'll hopefully be posting some pictures, too, so be on the lookout for them.
 
tk
Enumerate Incoming E-Mail lists
As I've been working through some Incoming E-Mail issues I realized there is no easy way to find out which lists and libraries are enabled for Incoming E-Mail or what addresses are being used.  I decided to try my hand at writing a little something to address that issue.  It's a small console app that walks through the lists and libraries and reports the ones that have email addresses.  It's pretty simple.  Go ahead and download it and let me know what you think.
 
tk
1 - 10 Next

 ‭(Hidden)‬ Admin Links

 Buy my Book!

Ever wonder what a SharePoint smarty does in his free time? We write blog entries and books. One of the books I was fortunate enough to work has hit the shelves. You can pick up Real World SharePoint 2007: Indispensable Experiences From 16 MOSS and WSS MVPs on Amazon.com. The book is filled with all kinds of great information on a wide variety of SharePoint aspects. There's something in there for admins, developers and even end users. As is in the Wrox tradition, all of our pictures appear on the cover. Here's what to look for:

Click for a full size picture

If you buy books at brick and mortar stores, please ask them to carry it. My baby's gotta eat!

After you grab the book head over to the Wrox forums or post here and let me know what you think.

tk