Just a quick post on some work I am doing migrating all the My Sites on my intranet. I was having a tough time outputting the enumerated sites to a text file & finally figured it out, so here is the syntax. My problem was that i was trying to use the -filename toggle instead of ">>", ugh:
-
stsadm -o enumsites -url http://localhost/ >>allsites.txt
Then once I had the list, I was able to massage the My Sites list for this type of thing as a big BAT file running Backups:
-
stsadm -o backup -url http://moss-1/personal/name1 -filename c:mysitebackups
ame1.bak
stsadm -o backup -url http://moss-1/personal/name2 -filename c:mysitebackups
ame2.bak
stsadm -o backup -url http://moss-1/personal/name3 -filename c:mysitebackups
ame3.bak
Last, I find this is a nice way to Backup the larger sites with timestamps nested around stsadm backup commands…outputted from a BAT file at the command line. This was good for me to estimate the time it would take for backups / restores in a Test environment in prep for the same thing in Production:
-
time /t
stsadm -o backup -url http://moss-1/Sites/Corporate -filename c:sitebackupscorporate.bak
time /t
stsadm -o backup -url http://moss-1/Sites/Sales -filename c:sitebackupssales.bak
time /t