05-25-05 12:48 PM
Hi Nikolaj,
that can be done using SiteDeployment API:
Dim pCmsDeployExport
Dim shell
Dim pExportOptions
Set pCmsUserGroupBackupRestore =
CreateObject("CmsDeployServer.CmsUserGroupBackupRestore.1")
pCmsUserGroupBackupRestore.AuthenticateAsCurrentUser()
If ( Err.Number <> 0 ) Then
Call MsgBox(Err.Description, vbCritical, "Backup/Restore PROBLEM")
Set pCmsUserGroupBackupRestore = Nothing
else
strPackageFileName = "d:\export\export-users.sdo"
strReportUrl = pCmsUserGroupBackupRestore.Backup("strPackageFileName")
' Display the report in the Web browser.
Set shell = WScript.CreateObject("WScript.Shell")
shell.Run "http://localhost" & strReportUrl, 7
WScript.Echo "Export complete."
end if
Then import the SDO on the destination server using SiteManager or site
deployment script.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"nikolaj" <nik@email.dk> wrote in message
news:1117015558.738715.318980@g43g2000cwa.googlegroups.com...
>I need to export the roles, rights-groups and users from an mcms site
> to some reasonable format.
> programmatically.
> I'm currently exprimenting with the option of generating an sdo-file in
> site manager, and extracting my information from the xml-files in this
> sdo. Is this a good approach or can I do better? It would be nice to
> make a tool for this task which does not involve sitemanager and a
> decompression-tool..
>
[ Post a follow-up to this message ]
|