Yes, sorry, it's been expanded so much in v8, vs v7. And you have 7 right in the subject . . .
Probably for regular operational stuff most people set up scheduled backups. I haven't done back-up/restore specifically with xquery, but I'd expect that it would be good for most any repeatable process. On Thu, Sep 3, 2015 at 5:15 PM, Gulik, Ernest <[email protected]> wrote: > Thank you for your response, > This is first time I'm doing migration for ML7 product. > Management API seems to be directed more towards ML8, is that true? Will this > work only with version 8? > Due to licensing we can only migrate from v7 to v7. > > After digging through documentation it seems like xquery scripting is best > option for setting up automated backups and later restoration. > Do you have any experience with writing any xquery scripting for backups and > doing restore from these backups? > I'm wondering if I would come up with a script and use it to backup current > environment and restore everything in new environment I'll be at home. > Do you have any thoughts on that? > > Thank you, > Ernest G. > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Christopher > Hamlin > Sent: Thursday, September 03, 2015 1:21 PM > To: MarkLogic Developer Discussion <[email protected]> > Subject: Re: [MarkLogic Dev General] MarkLogic7 restore fails using web > dashboard > > I guess it's a subjective question mostly. I don't think there is any > one-click solution that you are missing. > > If it's a one-off, you can just fix things up and get them going. I happen > to do a lot of this one-off stuff, so not that experienced in building config > stuff, but on any project that lasts, it's nice to have something scripted. > Do you put in the work up front, to get something easier to use and for sure > repeatable? > > There are various ways of setting things up, including xqy scripts and Roxy. > > Something else to note is that the REST management API has been expanded a > lot: > > http://www.marklogic.com/what-is-marklogic/whats-new/management-api/ > > I think samplestack at > > http://www.marklogic.com/what-is-marklogic/whats-new/samplestack/ > > has a couple configurations built with gradle and with JS that might be worth > looking at. > > > > > On Wed, Sep 2, 2015 at 10:49 AM, Gulik, Ernest <[email protected]> wrote: >> Thank you for quick response, >> I started to think that this is part of the problem because custom forests >> that were created on the old server have additional "-1" after import and >> there are no forests with such id that is in error. >> If this is not the best way to backup/restore databases (schemas, forests, >> etc) then what is the recommended way? >> Documentation shows a way for backing up and restoring using xquery >> scripting but this process seems a lot more complex than simple >> export/import. >> >> >> Thank you, >> Ernest Gulik >> >> -----Original Message----- >> From: [email protected] >> [mailto:[email protected]] On Behalf Of >> Christopher Hamlin >> Sent: Tuesday, September 01, 2015 5:56 PM >> To: MarkLogic Developer Discussion <[email protected]> >> Subject: Re: [MarkLogic Dev General] MarkLogic7 restore fails using >> web dashboard >> >> First I would check that the forest names on the new db match those on the >> original. >> >> I don't think configuration manager takes care of creating forests that >> match exactly. >> >> On Tue, Sep 1, 2015 at 5:41 PM, Gulik, Ernest <[email protected]> wrote: >>> Hello all, >>> >>> I’m trying to setup ML on another server by restoring from server >>> backup but have hard time doing that here’s what I did and issue that >>> I can’t figure it out. I hope someone can help me. >>> >>> I exported settings using configuration manager which created .zip package. >>> >>> I imported that .zip package on new host, restarted ML service. >>> >>> Logged into ML dashboard (8001) and navigated to Configure-> >>> Databases >>> ->App-Services ->Backup/Restore tab, >>> >>> Pointed “Restore from directory” to >>> ‘/var/opt/MarkLogic/testrestore/20150626-2008442705860’ (where I >>> copied my data - 3.9GB). >>> >>> After starting restore process I get this message and logs are not >>> really helpful because there’s nothing in there about >>> ‘13467990979117581242’: >>> >>> >>> >>> Operation failed with error message: XDMP-NOFOREST: >>> xdmp:database-restore(xs:unsignedLong("13467990979117581242"), >>> "/var/opt/MarkLogic/testrestore/20150626-2008442705860", (), >>> fn:false(), ()) >>> -- No forest with identifier 13467990979117581242. Check server logs. >>> >>> >>> >>> Did someone encountered such error or can point me somewhere on how >>> to solve that issue? >>> >>> >>> >>> Thank you, >>> >>> Ernest G. >>> >>> >>> >>> >>> _______________________________________________ >>> General mailing list >>> [email protected] >>> Manage your subscription at: >>> http://developer.marklogic.com/mailman/listinfo/general >>> >> _______________________________________________ >> General mailing list >> [email protected] >> Manage your subscription at: >> http://developer.marklogic.com/mailman/listinfo/general >> _______________________________________________ >> General mailing list >> [email protected] >> Manage your subscription at: >> http://developer.marklogic.com/mailman/listinfo/general > _______________________________________________ > General mailing list > [email protected] > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general > _______________________________________________ > General mailing list > [email protected] > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
