[MarkLogic Dev General] Backup/restore security databasefrom Windows to RedHat

Michael Blakeley mike at blakeley.com
Tue Nov 29 09:31:08 PST 2011


XQSync will copy document permissions (unless COPY_PERMISSIONS=false of course).

Create the necessary roles on the destination system first. Then you can run the XQSync import process. If XQSync tries to copy permissions for a role that does not exist, it will throw an error.

-- Mike

On 29 Nov 2011, at 01:49 , Mariano Grau Calín wrote:

> The number of users and roles is not very high and we'll can do it manually.
> 
> However, content database has 100 gb and need restore in new platform.
> 
> We can use xqsync with garanties?
> 
> 
> Mariano Grau
> Dpto. Sistemas
> Grupo Joly
> 
> 
> 
> -----Mensaje original-----
> De: general-bounces at developer.marklogic.com en nombre de Michael Blakeley
> Enviado el: mar 29/11/2011 0:00
> Para: General MarkLogic Developer Discussion
> Asunto: Re: [MarkLogic Dev General] Backup/restore security databasefrom	Windows to RedHat
> 
> XQSync is at https://github.com/marklogic/xqsync but... since this is the Security database, I think it would be safer to write a script that creates the security entities that you need, using the security API. The two databases won't have the same ids for their users and roles, but your code shouldn't depend on that anyway.
> 
> -- Mike
> 
> On 28 Nov 2011, at 14:56 , Danny Sokolsky wrote:
> 
>> Databases are not compatibly between platforms.  You will have to use something like xqsync for this.
>> 
>> -Danny
>> 
>> From: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] On Behalf OfMariano Grau Calín
>> Sent: Monday, November 28, 2011 2:55 PM
>> To: general at developer.marklogic.com
>> Subject: [MarkLogic Dev General] Backup/restore security database from Windows to RedHat
>> 
>> Hi all,
>> 
>> We have a fresh installation of MarkLogic 4.0-9 on RHEL 5.6 and want to restore security database from the same version on Windows 2003.
>> 
>> Following these steps:
>> 
>> 1 Backup security database on Windows 2003
>> 2 Zip backup folder
>> 3 Copy zip to RedHat
>> 4 Unzip file
>> 5 Restore security database on RedHat
>> 
>> No errors are reported on restore, but users and roles do not appear in the new server.
>> 
>> Regards,
>> 
>> Mariano Grau
>> mgrau @ grupojoly.com
>> Dpto. Sistemas
>> Grupo Joly
>> 
>> _______________________________________________
>> General mailing list
>> General at developer.marklogic.com
>> http://developer.marklogic.com/mailman/listinfo/general
> 
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
> 
> <winmail.dat>_______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general



More information about the General mailing list