https://github.com/alexanderbabel/database-s3-backup
Docker Image that takes care of MongoDB, PostgreSQL and MySQL Backups. Creates a dump with compression and encryption support and uploads it to an S3 compatible endpoint.
https://github.com/alexanderbabel/database-s3-backup
backup database mysql postgresql s3
Last synced: about 1 year ago
JSON representation
Docker Image that takes care of MongoDB, PostgreSQL and MySQL Backups. Creates a dump with compression and encryption support and uploads it to an S3 compatible endpoint.
- Host: GitHub
- URL: https://github.com/alexanderbabel/database-s3-backup
- Owner: AlexanderBabel
- Created: 2020-08-22T14:43:37.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2025-02-15T21:28:15.000Z (over 1 year ago)
- Last Synced: 2025-04-12T05:42:38.742Z (about 1 year ago)
- Topics: backup, database, mysql, postgresql, s3
- Language: Shell
- Homepage:
- Size: 305 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# database-s3-backup
Docker Image that takes care of MongoDB, PostgreSQL and MySQL Backups. Creates a dump with compression and encryption support and uploads it to an S3 compatible endpoint.
## Usage
### Mongo Backup
```bash
docker run -it \
-e AWS_ACCESS_KEY_ID=ID \
-e AWS_SECRET_ACCESS_KEY=KEY \
-e BUCKET_NAME=backups \
-e BACKUP_NAME=backup \
-e ENCRYPTION_KEY=your_secret_passphrase
-e DATABASE_URL=mongodb://user:password@host:port/database?replicaSet=rs0&authSource=authDatabase
ghcr.io/alexanderbabel/database-s3-backup
```
### Postgresql Backup
```bash
docker run -it \
-e AWS_ACCESS_KEY_ID=ID \
-e AWS_SECRET_ACCESS_KEY=KEY \
-e BUCKET_NAME=backups \
-e BACKUP_NAME=backup \
-e ENCRYPTION_KEY=your_secret_passphrase
-e DATABASE_URL=postgresql://user:password@host:port/database
ghcr.io/alexanderbabel/database-s3-backup
```
### MySQL Backup
```bash
docker run -it \
-e AWS_ACCESS_KEY_ID=ID \
-e AWS_SECRET_ACCESS_KEY=KEY \
-e BUCKET_NAME=backups \
-e BACKUP_NAME=backup \
-e ENCRYPTION_KEY=your_secret_passphrase
-e DATABASE_URL=mysql://user:password@host:port/database
ghcr.io/alexanderbabel/database-s3-backup
```