QQ-GitHub-Bot/scripts/backup_redis.sh
2021-08-25 17:17:20 +08:00

12 lines
363 B
Bash

#!/usr/bin/env bash
###
# @Author : yanyongyu
# @Date : 2021-03-25 16:22:18
# @LastEditors : yanyongyu
# @LastEditTime : 2021-08-25 17:13:38
# @Description : None
# @GitHub : https://github.com/yanyongyu
###
docker run --rm --volumes-from bot_redis -v $(pwd):/backup busybox tar -cvf /backup/backup-$(date +"%s").tar -C / data/