Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann Wagner committed Jun 28, 2019
0 parents commit e01f4b3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
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"]
6 changes: 6 additions & 0 deletions README.md
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`

0 comments on commit e01f4b3

Please sign in to comment.