QQ-GitHub-Bot/scripts/backup_redis.sh

12 lines
374 B
Bash
Raw Normal View History

2021-03-25 08:44:11 +00:00
#!/bin/bash
###
# @Author : yanyongyu
# @Date : 2021-03-25 16:22:18
# @LastEditors : yanyongyu
# @LastEditTime : 2021-03-25 16:42:58
# @Description : None
# @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