mirror of
https://codeberg.org/scip/anydb.git
synced 2025-12-17 04:20:59 +01:00
lots of changes:
- added man command - added unit tests - fixed import+export file parameters (now -o and -r respectively) - added README + License - added ci pipelines
This commit is contained in:
15
t/restore.txtar
Normal file
15
t/restore.txtar
Normal file
@@ -0,0 +1,15 @@
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user