Additionally, there is no need to import the admin library. From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky Sent: Tuesday, October 20, 2015 2:40 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Invalid content RESTAPI-INVALIDCONTENT: (err:FOER0000) - when installing rest-api extension for backups in MarkLogic 7
It looks like your function has a syntax error in it: let $dbname := map:get($params, $dbname) let $s3bucket := map:get($params, $s3bucket) xdmp:database-backup( (:xdmp:database-forests(xdmp:database($dbname)), $s3bucket ):) xdmp:database-forests(xdmp:database($dbname)), "s3://bucketname/folder" ) It is missing the return after the let statements. -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Gulik, Ernest Sent: Tuesday, October 20, 2015 2:26 PM To: general@developer.marklogic.com Subject: [MarkLogic Dev General] Invalid content RESTAPI-INVALIDCONTENT: (err:FOER0000) - when installing rest-api extension for backups in MarkLogic 7 Hello everyone, There's simple xquery function for backups that works pretty great. I wanted to automate it, knowing that we can install new extensions. My code, error and command can be found on stackoverflow<http://stackoverflow.com/questions/33246818/marklogic-7-database-backup-with-rest-api>. I didn't want to create another copy of my post. If anyone has some suggestions as to what could be causing RESTAPI-INVALIDCONTENT: (err:FOER0000) I would greatly appreciate it. Is such thing even supported in ML7? Digging through bunch of other functions under /opt/MarkLogic seems like this should work but I can't seem to find anything about that anywhere in documentation. Thank you, Ernest Gulik
_______________________________________________ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general