A great way to keep track of your (probably quickly increasing in number) bonsai.
- Start db docker:
$ docker-compose up
- Start server:
$ cd server && npm start
- Start client:
$ cd ../client && npm start
$ cd db && ./backup.sh
Note: Script must be executed from within the db/ directory for paths to be resolved correctly.
This will dump the database to a file and all images to a zip file, something like:
db/backups/
--> db/db_dump_some_timestamp.sql
--> img/img_dump_some_timestamp.zip
This will clear your database and restore it from the dump all other data will be lost!.
This will not clean the images folder though, so you might want to do it yourself.
$ ./db/restore.sh \
./db/backups/db/db_dump_some_timestamp.sql \
./db/backups/img/img_dump_some_timestamp.zip