Skip to content

Commit 3c9c6f9

Browse files
authored
Allow EXCLUDES and RESTIC_ADDITIONAL_TAGS to be blank (#160)
1 parent e2ea88d commit 3c9c6f9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ Provides a side-car container to back up [itzg/minecraft-server](https://github.
2828
- `INCLUDES`=. : comma separated list of include patterns relative to directory specified by `SRC_DIR` where `.` specifies all of that directory should be included in the backup.
2929

3030
**For Restic** the default is the value of `SRC_DIR` to remain backward compatible with previous images.
31-
- `EXCLUDES`=\*.jar,cache,logs,\*.tmp
31+
- `EXCLUDES`=\*.jar,cache,logs,\*.tmp : commas separated list of file patterns to exclude from the backup. To disable exclusions, set to an empty string.
3232
- `EXCLUDES_FILE`: Can be set to read the list of excludes (one per line) from a file. Can be used with `EXCLUDES` to add more excludes.
3333
- `BACKUP_METHOD`=tar
34-
- `RESTIC_ADDITIONAL_TAGS`=mc_backups
34+
- `RESTIC_ADDITIONAL_TAGS`=mc_backups : additional tags to apply to the backup. Set to an empty string to disable additional tags.
35+
- `RESTIC_VERBOSE`=false : set to "true" to enable verbose output during restic backup operation
3536
- `TZ` : Can be set to the timezone to use for logging
3637
- `PRE_SAVE_ALL_SCRIPT`, `PRE_BACKUP_SCRIPT`, `PRE_SAVE_ON_SCRIPT`, `POST_BACKUP_SCRIPT`, `*_SCRIPT_FILE`: See [Backup scripts](#backup-scripts)
3738

examples/docker-compose.restic.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ services:
1010
volumes:
1111
- mc:/data
1212
backup:
13-
image: itzg/mc-backup:local
13+
image: itzg/mc-backup
1414
depends_on:
1515
mc:
1616
condition: service_healthy
@@ -21,7 +21,6 @@ services:
2121
RESTIC_PASSWORD: password
2222
RESTIC_REPOSITORY: /backups
2323
PRUNE_RESTIC_RETENTION: "--keep-daily 7 --keep-weekly 5"
24-
RESTIC_VERBOSE: true
2524
volumes:
2625
- mc:/data:ro
2726
- backups:/backup

scripts/opt/backup-loop.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ fi
3232

3333
: "${RCON_RETRIES:=5}"
3434
: "${RCON_RETRY_INTERVAL:=10s}"
35-
: "${EXCLUDES:=*.jar,cache,logs,*.tmp}" # Comma separated list of glob(3) patterns
35+
: "${EXCLUDES=*.jar,cache,logs,*.tmp}" # Comma separated list of glob(3) patterns
3636
: "${EXCLUDES_FILE:=}" # Path to file containing list of glob(3) patterns
3737
: "${LINK_LATEST:=false}"
38-
: "${RESTIC_ADDITIONAL_TAGS:=mc_backups}" # Space separated list of restic tags
38+
: "${RESTIC_ADDITIONAL_TAGS=mc_backups}" # Space separated list of restic tags
3939
: "${RESTIC_HOSTNAME:=$(hostname)}"
4040
: "${RESTIC_VERBOSE:=false}"
4141
: "${XDG_CONFIG_HOME:=/config}" # for rclone's base config path

0 commit comments

Comments
 (0)