Docker Volume Backup Tutorial
To back up a Docker volume, we can run a temporary container that mounts the volume you want to back up and uses the tar command to create a compressed archive of the volume contents.
docker run --rm \
-v "$VOLUME_NAME":/backup-volume \
-v "$(pwd)":/backup \
busybox