Open twhoffma opened 2 years ago
Needs to be researched more - crashes since jq closes pipe
https://github.com/stedolan/jq/wiki/FAQ#streaming-json-parser
Might be as easy as
curl -X GET 'http://localhost:5984/mydatabase/_all_docs?include_docs=true' | jq '{"docs": [.rows[].doc]} | del(.docs[]._rev)' | xz > db.json.xz
Right now we're using couchdb-dump. Move to curl and jq with something along the lines of
curl -X GET 'http://localhost:5984/mydatabase/_all_docs?include_docs=true' | jq '{"docs": [.rows[].doc]}' | jq 'del(.docs[]._rev)' | xz > db.json.xz
We can probably also consider separate backups for boardgames and stats..