> ## Content Index
> Fetch the complete content index at: https://blog.k3s.9zf.net/llms.txt
> Use this file to discover other available public pages before exploring further.

# odoo14安装自动备份数据库
- URL: https://blog.k3s.9zf.net/odoo14-e5-ae-89-e8-a3-85-e8-87-aa-e5-8a-a8-e5-a4-87-e4-bb-bd-e6-95-b0-e6-8d-ae-e5-ba-93/
- Published: 2021-08-15T10:33:29.000Z
- Updated: 2021-08-15T10:33:29.000Z
- Author: liu
- Tags: 生活日记, #wordpress, #Import 2026-10-29 06:11

需要auto\_backup模块 https://github.com/Yenthe666/auto\_backup  
模块所需  
pysftp==0.2.8  
cryptography==3.3.2  
paramiko==2.4.2  
可以手动pip3 install 安装，也可以用requirements.txt安装  
有坑就是需要升级pip3才能正确安装cryptography ，`pip3 install --upgrade pip`  
然后开发者模式，刷新本地应用，安装aotuo backup模块，设置-技术-备份数据库里设置参数，  
此处有坑 Backup Directory /var/lib/odoo/odoo ，这个目录必须有权限，可以进入docker shell 创建一个目录填入， cd \~ ，mkdir odoo就是前面目录，不然会提示权限错误。