I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. And I am using publishing portal template. I am using the following backup and restore process to backup from site collection http://machine1 to site collection http://machine2/sites/site2. I want to know whether my backup and restore process is correct? (both source and destination are site collections.)
Another question is, I am confused in step 2, if I do not create a new content database from Central Administration, and in step 3, the restore command will output error says content database not exists? why?
Step 1: (from source machine1) backup stsadm.exe -o backup -url http://machine1 -filename e:\backup.dat
Step 2: (from destination machine2) create a site collection http://machine2/sites/site2 and create a new content database
Step 3: (from destination machine2) stsadm.exe -o restore -url http://machine2/sites/site2 -filename e:\backup.dat -overwrite