Skip to content

Commit 7eb31f3

Browse files
README update for docker wrapper
1 parent ad972d7 commit 7eb31f3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ The backups are mongorestore compatible and stored in a directory per backup. Th
141141
Run as Docker Container (Experimental)
142142
~~~~~~~~~~~~~~~~~~~~~~~
143143

144-
*Note: you need to use persistent volumes to store backups and/or config files long-term when using Docker. Data in Docker containers is destroyed when the container is deleted.*
144+
Note: you need to use persistent volumes to store backups and/or config files long-term when using Docker. Data in Docker containers is destroyed when the container is deleted. See `scripts/docker-persistent.sh <scripts/docker-persistent.sh>`__ and `scripts/docker-persistent.example.conf <scripts/docker-persistent.example.conf>`__ as an example/demo of how to implement persistence.
145145

146146
**Via Docker Hub**
147147

scripts/docker-persistent.example.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# when using with scripts/docker-persistent.sh. Changes to
33
# these flags will be ignored!
44
production:
5-
host: mongodb.example.com
5+
host: 172.17.0.1
66
port: 27017
77
log_dir: /mongodb_consistent_backup/logs
88
backup:

scripts/docker-persistent.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if [ "$ACTION" = "backup" ]; then
4040
fi
4141
elif [ "$ACTION" = "list" ]; then
4242
echo "# Listing backups in $BACKUP_DATA_IMAGE"
43-
docker run -it --rm --volumes-from $BACKUP_DATA_IMAGE --entrypoint /bin/find $DOCKER_IMAGE $BACKUP_DIR/data -maxdepth 2 -name "[0-9]*_*"
43+
docker run -it --rm --volumes-from $BACKUP_DATA_IMAGE --entrypoint /bin/find $DOCKER_IMAGE $BACKUP_DIR/data -maxdepth 2 -type d -name "[0-9]*_*"
4444
elif [ "$ACTION" = "get" ]; then
4545
DIR=$2
4646
[ -z $DIR ] && echo "Usage: $0 get [backup path]" && exit 1

0 commit comments

Comments
 (0)