-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Johann Wagner
committed
Jun 28, 2019
0 parents
commit e01f4b3
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM minio/mc | ||
|
||
RUN apk add postgresql-client mysql-client bash | ||
|
||
ENTRYPOINT ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# mc-database-backup | ||
|
||
This is the `minio/mc` image with some additional database clients, which we need for backups. | ||
|
||
1. Create a configuration for your bucket. `mcli config host add deinstapel https://backups.deinstapel.de $ACCESS_KEY $SECRET_KEY --api "s3v4"` | ||
2. Create a backup from your database and pipe it into your bucket. `pg_dump -U username -d database | mcli pipe deinstapel/bucket/folder/filename.sql` |