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
+24-2Lines changed: 24 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# docker-volume-backup
2
2
3
-
Backup Docker volumes to any S3 compatible storage.
3
+
Backup Docker volumes locally or to any S3 compatible storage.
4
4
5
-
The [offen/docker-volume-backup](https://hub.docker.com/r/offen/docker-volume-backup) Docker image can be used as a sidecar container to an existing Docker setup. It handles recurring backups of Docker volumes to any S3 compatible storage and rotates away old backups if configured.
5
+
The [offen/docker-volume-backup](https://hub.docker.com/r/offen/docker-volume-backup) Docker image can be used as a sidecar container to an existing Docker setup. It handles recurring backups of Docker volumes to a local directory or any S3 compatible storage (or both) and rotates away old backups if configured.
6
6
7
7
## Configuration
8
8
@@ -30,15 +30,33 @@ AWS_S3_BUCKET_NAME="<xxx>"
30
30
# This is the FQDN of your storage server, e.g. `storage.example.com`.
31
31
# Do not set this when working against AWS S3. If you need to set a
32
32
# specific protocol, you will need to use the option below.
33
+
33
34
# AWS_ENDPOINT="<xxx>"
34
35
35
36
# The protocol to be used when communicating with your storage server.
36
37
# Defaults to "https". You can set this to "http" when communicating with
37
38
# a different Docker container on the same host for example.
39
+
38
40
# AWS_ENDPOINT_PROTO="https"
39
41
42
+
# In addition to backing up you can also store backups locally. Pass in
43
+
# a local path to store your backups here if needed. You likely want to
44
+
# mount a local folder or Docker volume into that location when running
45
+
# the container. Local paths can also be subject to pruning of old
46
+
# backups as defined below.
47
+
48
+
# BACKUP_ARCHIVE="/archive"
49
+
40
50
########### BACKUP PRUNING
41
51
52
+
# **IMPORTANT, PLEASE READ THIS BEFORE USING THIS FEATURE**:
53
+
# The mechanism used for pruning backups is not very sophisticated
54
+
# and applies its rules to **all files in the target directory**,
55
+
# which means that if you are storing your backups next to other files,
56
+
# these might become subject to deletion too. When using this option
57
+
# make sure the backup files are stored in a directory used exclusively
58
+
# for storing them or you might lose data.
59
+
42
60
# Define this value to enable automatic pruning of old backups. The value
43
61
# declares the number of days for which a backup is kept.
44
62
@@ -108,6 +126,10 @@ services:
108
126
# to stop the container
109
127
- /var/run/docker.sock:/var/run/docker.sock:ro
110
128
- data:/backup/my-app-backup:ro
129
+
# If you mount a local directory or volume to `/archive` a local
130
+
# copy of the backup will be stored there. You can override the
131
+
# location inside of the container by setting `BACKUP_ARCHIVE`
0 commit comments