https://github.com/codica2/postgres-dump-restore
Bash script for PostgreSQL and MongoDB backup/restore database and copy to S3
https://github.com/codica2/postgres-dump-restore
Last synced: 7 days ago
JSON representation
Bash script for PostgreSQL and MongoDB backup/restore database and copy to S3
- Host: GitHub
- URL: https://github.com/codica2/postgres-dump-restore
- Owner: codica2
- Created: 2021-07-06T11:02:49.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-06T11:43:38.000Z (almost 5 years ago)
- Last Synced: 2025-11-06T22:04:42.228Z (8 months ago)
- Language: Shell
- Size: 328 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Bash script for PostgreSQL backup/restore database & copy to S3!

---
**`main.sh`** - script for backup postgresql database.
**Menu script management for backup and restore. In this control menu, there are 4 options for development:**
* Backup docker local database
* Backup RDS database
* Restore docker local database
* Restore RDS database
**To install, you need to download scripts and run**
**At startup, the required data is requested**
* S3_BUCKET, S3_PATH
* AWS_ACCESS_KEY_ID
* AWS_SECRET_ACCESS_KEY
* AWS_REGION
* RDS_HOST
* RDS_DB
**They need to copy the backup to s3, if you want to make a backup just locally - you can just press Enter to skip.**
## License
Database backup/restore is Copyright © 2015-2021 Codica. It is released under the [MIT License](https://opensource.org/licenses/MIT).
## About Codica
[](https://www.codica.com)
We love open source software! See [our other projects](https://github.com/codica2) or [hire us](https://www.codica.com/) to design, develop, and grow your product.