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/