diff --git a/.gitignore b/.gitignore index 063a7e7..1d09217 100644 --- a/.gitignore +++ b/.gitignore @@ -48,5 +48,4 @@ dist/ *.7z *.bak - - +backend/backups diff --git a/backend/Makefile b/backend/Makefile index 6318212..db8094c 100644 --- a/backend/Makefile +++ b/backend/Makefile @@ -54,9 +54,10 @@ db.sqlite3: make migrate backup: - sqlite3 $(DB_FILE) .dump | gzip -9 > BACKUP_$(DB_FILE)_$(shell date +"%Y-%m-%d_%H:%M:%S").sql.gz + mkdir -p backups + sqlite3 $(DB_FILE) .dump | gzip -9 > ./backups/BACKUP_$(DB_FILE)_$(shell date +"%Y-%m-%d_%H:%M:%S").sql.gz # Restore with: - # gzip -cd BACKUP_$(DB_FILE)_*.sql.gz | sqlite3 $(DB_FILE) + # gzip -cd BACKUP_FILE.sql.gz | sqlite3 $(DB_FILE) # Default target default: build