Managing MOSS 2007 - Backup and Restore
To do a site backup, run the following command from a dos prompt on the server:
c:>"%COMMONPROGRAMFILES%\microsoft shared\web server extensions\12\bin\stsadm" -o backup -url http://mysite.com:1234 -filename mysite.com.backup
to do a site restore from that backup:
c:>"%COMMONPROGRAMFILES%\microsoft shared\web server extensions\12\bin\stsadm" -o restore -url http://mynewsite.com:1234 -filename mysite.com.backup
where "mynewsite.com:1234" is an existing MOSS site you've crated in the central admin. You will most likely need to add the switch "-overwrite" to the restore command, unless the new site is completely empty of content.
UPDATE
I took a sharepoint designer class last week and learned about a few more deployment options. Designer does have a few backup and restore tools for WSS/MOSS data: You can create a .fwp Personal Web Package for publishing a small collection of files (File->Export->Personal web package) or do a site backup (Site->Administration->Backup Website) which creates Content Migration Package with a .cmp extension.
The .cmp is a bit tricky, because it will only restore into the same site tree you backed it up from. Meaning if you wanted to backup the site "mybackupsite" from the path "/myroot/mysite/mybackupsite" you wont be able to restore that site to the path "/myroot/someoneelsessite/mybackupsite". The restore utility starts the restore, drops a bunch of files, then errors out with some generic error -.-
YET ANOTHER UPDATE
I was trying to use backup/restore to copy a site out from a staging farm to a production farm. I've had limited success with that. Sometimes it works without issue. Sometimes the new site created from the backup generates a sharepoint error on any public page you try to hit. When I run into that error, I dont seem to be able to fix the problem, even when I delete and re-create the web application completely. I'm now looking into using stsadm -o export to deploy files, I'll create a new post for those results and link to that from here when I'm finished.