Re: Export collection
Florian Schmitt <[email protected]>
| Newsgroups | gmane.text.xml.exist |
|---|---|
| Message-ID | <[email protected]> |
Vincent, You could use the Java Command Line Client for this task. It accepts an argument “-b” to specify the collection to export: http://www.exist-db.org/exist/apps/doc/backup#command-line-utility For example, the following command will backup the /db/data/export1 collection, including its subcollections, to /tmp/backup (assuming that the eXist-db directory belongs to system user existdb): sudo -u existdb /opt/eXist-db/bin/backup.sh -b '/db/data/export1' -d /tmp/backup/ -u <user> -p <pw> Greetings, Florian Von: Lizzi, Vincent <[email protected]> Gesendet: Mittwoch, 10. August 2022 06:17 An: [email protected] Betreff: [Exist-open] Export collection Hi all, Is there a ready-made way to export a specific collection from eXist-db to disk? In this case, the collection contains several levels of nested collections, XQuery and XML documents. I looked through the documentation but could only find instructions about how to back up an entire database, not a specific collection. It should be easy enough to create an XQuery to export a collection to disk, but it seems worth asking first if such a thing already exists. Thanks, Vincent _____________________________________________ Vincent M. Lizzi Head of Information Standards | Taylor & Francis Group [email protected]<mailto:[email protected]> "Everything should be made as simple as possible, but not simpler." Information Classification: General _______________________________________________ Exist-open mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/exist-open