Files
anydb/t/restore.txtar

16 lines
317 B
Plaintext
Raw Normal View History

# 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