Simple Database backup and restore command for database which is running in Docker
- Download
db.shand.env.example. - Copy
.env.exampleto.envif.envdoes not exist. - Add value for database environment variable.
- Backup database
bash db.sh -b
OR
bash db.sh --backup
- Restore database
bash db.sh -r
OR
bash db.sh --restore