Skip to content

Commit 12a5dc0

Browse files
committed
refactor: update Docker Compose configuration for rclone-backup service
1 parent 2ccd3c6 commit 12a5dc0

1 file changed

Lines changed: 7 additions & 14 deletions

File tree

docs/guides/db-backup.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,20 @@ Create a Docker Compose file for the backup service:
1717
```yml [docker-compose.yml]
1818
services:
1919
rclone-backup:
20-
image: teldrive/rclone-backup:17 # for postgres 16 use teldrive/rclone-backup:16
20+
image: ghcr.io/tgdrive/rclone-backup:17 # for postgres 16 use tag 16
2121
container_name: rclone-backup
2222
environment:
23-
- RCLONE_REMOTE_NAME=remote # use your configured rclone remote name
24-
- BACKUP_KEEP_DAYS=10 # how many days to keep backup history
25-
- CRON=0 */6 * * * # backup frequency (every 6 hours in this example)
23+
- RCLONE_REMOTE_NAME=remote
24+
- BACKUP_KEEP_DAYS=10
25+
- CRON=0 0 * * * # backup frequency (every 24 hours in this example)
2626
- ZIP_ENABLE=true # enable backup compression
27-
- PG_HOST=postgres # database hostname
28-
- PG_DBNAME=postgres # database name
29-
- PG_USERNAME=user # database username
30-
- PG_PASSWORD=pass # database password
27+
- PG_CONNECTION_STRING=postgres://user:pass@postgres/postgres # database string
3128
- ZIP_PASSWORD=zippass # password to protect backup archives
3229
restart: always
3330
networks:
3431
- postgres
3532
volumes:
36-
- /path/to/rclone/configdir/:/app/rclone # mount your rclone config directory
33+
- /path/to/rclone/configdir/:/config/rclone # mount your rclone config directory
3734

3835
networks:
3936
postgres:
@@ -61,11 +58,7 @@ Customize your backup solution further with these environment variables:
6158
| `CRON` | Backup schedule in cron format | "0 0 * * *" (daily) |
6259
| `ZIP_ENABLE` | Enable backup compression | false |
6360
| `ZIP_PASSWORD` | Password for encrypted backups | *empty* |
64-
| `PG_HOST` | PostgreSQL host | *required* |
65-
| `PG_DBNAME` | PostgreSQL database name | *required* |
66-
| `PG_USERNAME` | PostgreSQL username | *required* |
67-
| `PG_PASSWORD` | PostgreSQL password | *required* |
68-
61+
| `PG_CONNECTION_STRING` | PostgreSQL Connection string | *required* |
6962
## Verifying Backups
7063

7164
Your backups will be uploaded to your configured Rclone remote according to the schedule. You can verify the backups by:

0 commit comments

Comments
 (0)