From: Wolfgang M. <wol...@gm...> - 2006-04-10 15:56:47
|
> I am relatively new to eXist and I need to "manually" implement a backup = and > restore functionality for an exist database. So far I managed to do the > backup but restoring the data back in exist doesn't work and I can't see > why. Here is the piece of code: > > > File file =3D new File("c:/000/backup/db/__contents__.xml"); > Restore restore =3D new Restore("admin", "", null, file, > "xmldb:exist://localhost:8080/exist/xmlrpc/db"); > restore.restore(false, null); Try to pass the XMLDB URI without the root collection path "/db", i.e.: Restore restore =3D new Restore("admin", "", null, file, "xmldb:exist://localhost:8080/exist/xmlrpc"); Restore.mkcol appends /db to the URI it received, which leads to a double /db/db here. Sorry for that, the code should check this. Wolfgang |