diff --git a/.gitignore b/.gitignore index 2d89407..8f9be7b 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ *.dylib bin +database.txt db.sqlite3 *.png diff --git a/backend/Makefile b/backend/Makefile index d005846..2547900 100644 --- a/backend/Makefile +++ b/backend/Makefile @@ -54,6 +54,9 @@ migrate: db.sqlite3: make migrate +dbdump: + sqlite3 $(DB_FILE) .dump > database.txt + backup: mkdir -p backups sqlite3 $(DB_FILE) .dump | gzip -9 > ./backups/BACKUP_$(DB_FILE)_$(shell date +"%Y-%m-%d_%H:%M:%S").sql.gz