1 Star 0 Fork 1

gwt805 / db_backup_script

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 685 Bytes
一键复制 编辑 原始数据 按行查看 历史
gwt805 提交于 2023-05-13 15:01 . add cron upload and add tutorial



教程

  • 首次运行会提示让用阿里云盘APP扫码登陆

  • 需要先配置 config.py 文件及

  • 然后配置 main.py 中的 db_export_config, key 是文件名,value 中的 db 是 要备份的数据库的名字

  • 然后 安装环境, pip install -r requirements.txt

  • 首次运行需要先运行 python main.py 进行扫码登录

  • 后面运行 sh db_backup_auto_start.sh 或者 nohup python main.py & 皆可

  • 如有配置消息通知, 则消息中会包含: 上传的文件名, 文件所在的目录名字, 文件下载链接, 云盘的剩余空间

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/gwt805/db_backup_script.git
git@gitee.com:gwt805/db_backup_script.git
gwt805
db_backup_script
db_backup_script
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891