Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
michael authored Jul 29, 2023
1 parent 2b40d95 commit f0cf33e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ To restore a backup in production, you need to be a bit careful and follow these
1. Copy your local file to production using SFTP
- `sqlite3 data/db.sqlite3 ".backup data/backup-db.sqlite3"`
- `rm -rf data/db*`
- `mv data/backup-db.sqlite3 data/db.sqlite3` (the first 3 commands ensure all changes are consolidated into one db.sqlite3 file)
- `mv data/backup-db.sqlite3 data/db.sqlite3`
- `mv -rf data/backup-db*` (the first 4 commands ensure all changes are consolidated into one db.sqlite3 file)
- `fly sftp shell`
- `cd app/data`
- `put data/db.sqlite3`
Expand Down

0 comments on commit f0cf33e

Please sign in to comment.