Skip to content

Commit 5662a3a

Browse files
Use name to prevent problems with 2 nodes mounting the storage
1 parent efa48a0 commit 5662a3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/docker-persistent.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ if [ "$ACTION" = "backup" ]; then
5858
fi
5959
elif [ "$ACTION" = "list" ]; then
6060
echo "# Listing backups in $BACKUP_DATA_IMAGE"
61-
docker run -it --rm --volumes-from $BACKUP_DATA_IMAGE --entrypoint /bin/find $DOCKER_IMAGE $BACKUP_DIR/data -maxdepth 2 -type d -name "[0-9]*_*"
61+
docker run -it --name $BACKUP_IMAGE --rm --volumes-from $BACKUP_DATA_IMAGE --entrypoint /bin/find $DOCKER_IMAGE $BACKUP_DIR/data -maxdepth 2 -type d -name "[0-9]*_*"
6262
elif [ "$ACTION" = "get" ]; then
6363
DIR=$2
6464
[ -z $DIR ] && echo "Usage: $0 get [backup path]" && exit 1

0 commit comments

Comments
 (0)