-
-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hello :)
Thanks for this awesome template, but I got some problems regarding your "mc-restic-compose-backup" image in combination with this template.
- Cloned template and started via ./dc.sh up -d
- Attached to backup-container via ./backup.sh attach
- rcb status
First problem (see pastebin #1):
- Port var is null in python
- Tries to get it from container with tag restic-compose-backup.minecraft: true
- Workaround: Passing environment var RCON_PORT into minecraft container
environment:
...
# used to pass port to backup
RCON_PORT: ${RCON_PORT}
Second problem (see pastebin #1):
- Can't connect to database
- Hardcoded root username in mc-restic-compose-backup image
- Searches for MYSQL_ROOT_PASSWORD env var in database container
- Workaround: Passing environment var MYSQL_ROOT_PASSWORD into database container (other problems occur now, due to the MYSQL_RANDOM_ROOT_PASSWORD env set)
Third problem: (after temp-fixing first and second problem) (see pastebin #2)
- Can't set CRON_SCHEDULE environment var
- If set, I get the error "exit status 2 from user root source /env.sh && rcb backup > /proc/1/fd/1"
- Running source /env.sh inside the backup container, returns the following error message
- "sh: export: line 20: entrypoint.sh: bad variable name"
- In line 20 is my environment var CRON_SCHEDULE
- Workaround: Removing CRON_SCHEDULE from backup.env - default cronjob gets executed now, but I can't adjust the timings
Metadata
Metadata
Assignees
Labels
No labels