mirror of
https://codeberg.org/scip/anydb.git
synced 2025-12-17 12:31:02 +01:00
16 lines
317 B
Plaintext
16 lines
317 B
Plaintext
|
|
# setup simple db
|
||
|
|
exec anydb -f test.db set foo bar
|
||
|
|
|
||
|
|
# create backup
|
||
|
|
exec anydb -f test.db export -o backup.json
|
||
|
|
stdout 'database contents exported to backup.json'
|
||
|
|
|
||
|
|
# import into new db
|
||
|
|
exec anydb -f new.db import -r backup.json
|
||
|
|
stdout 'imported.*entries'
|
||
|
|
|
||
|
|
# check contents
|
||
|
|
exec anydb -f new.db list
|
||
|
|
stdout foo.*bar
|
||
|
|
|