From: Florian S. <fsc...@bu...> - 2022-08-10 07:52:10
|
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 <Vin...@ta...> Gesendet: Mittwoch, 10. August 2022 06:17 An: exi...@li... 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 vin...@ta...<mailto:vin...@ta...> "Everything should be made as simple as possible, but not simpler." Information Classification: General |