From 5823979f136a103d0eb2b7dba3e24b8405e9e2f9 Mon Sep 17 00:00:00 2001 From: yanyongyu Date: Fri, 2 Apr 2021 15:18:06 +0800 Subject: [PATCH] :wheelchair: fix backup script --- scripts/backup_redis.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/backup_redis.sh b/scripts/backup_redis.sh index df31a37..8442a20 100644 --- a/scripts/backup_redis.sh +++ b/scripts/backup_redis.sh @@ -8,4 +8,4 @@ # @GitHub : https://github.com/yanyongyu ### -docker run --rm --volumes-from $(docker-compose config --volumes) -v $(pwd):/backup busybox tar cvf /backup/backup-$(date +"%s").tar /data +docker run --rm --volumes-from bot_redis -v $(pwd):/backup busybox tar -cvf /backup/backup-$(date +"%s").tar -C / data/