You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
-
# PostgreSQL Backup to S3 with Docker
1
+
# Database Backup to S3 with Docker
2
2
3
-
This application automates the process of backing up PostgreSQL databases and uploading them to an S3-compatible storage service, utilizing Docker for easy deployment and scheduling.
3
+
This application automates the process of backing up PostgreSQL and MySQL databases and uploading them to an S3-compatible storage service, utilizing Docker for easy deployment and scheduling.
4
4
5
5
## Features
6
6
7
7
- Easy deployment with Docker and Docker Compose.
8
-
- Support for multiple PostgreSQL databases.
8
+
- Support for multiple PostgreSQL and MySQL databases.
9
9
- Customizable backup intervals.
10
10
- Direct upload of backups to an S3-compatible storage bucket.
11
11
- Environment variable and command-line configuration for flexibility.
@@ -14,7 +14,7 @@ This application automates the process of backing up PostgreSQL databases and up
14
14
## Prerequisites
15
15
16
16
- Docker and Docker Compose installed on your system.
17
-
- Access to a PostgreSQL database.
17
+
- Access to PostgreSQL and/or MySQL databases.
18
18
- Access to an S3-compatible storage service.
19
19
20
20
## Configuration
@@ -25,7 +25,7 @@ Before running the application, you need to configure it either by setting envir
25
25
26
26
Create a `.env` file in the project directory with the following variables:
27
27
28
-
-`URLS`: Comma-separated list of PostgreSQL database URLs to backup. Format: `postgres://<user>:<password>@<host>[:<port>]/<dbname>`
28
+
-`URLS`: Comma-separated list of database URLs to backup. Format for PostgreSQL: `postgres://<user>:<password>@<host>[:<port>]/<dbname>` and for MySQL: `mysql://<user>:<password>@<host>[:<port>]/<dbname>`
29
29
-`S3_ENDPOINT`: The endpoint URL of your S3-compatible storage service.
30
30
-`S3_BUCKET`: The name of the bucket where backups will be stored.
There is an image available on `ghcr.io/thedevminertv/postgres_s3_backup` that you can use.
54
+
There is an image available on `ghcr.io/thedevminertv/database-s3-backup` that you can use.
55
55
56
56
Alternatively, you can build the image yourself:
57
57
@@ -67,7 +67,7 @@ Alternatively, you can build the image yourself:
67
67
docker compose up -d
68
68
```
69
69
70
-
This will start the application in the background. It will automatically perform backups based on the configured interval and upload them to the specified S3 bucket.
70
+
This will start the application in the background. It will automatically perform backups for both PostgreSQL and MySQL databases based on the configured interval and upload them to the specified S3 bucket.
0 commit comments