QQ-GitHub-Bot/scripts/backup_redis.sh

12 lines
363 B
Bash
Raw Normal View History

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