Skip to content
Backup Odoo through command line
Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes
README.md
backup-script.sh

README.md

bash-backup-odoo

  • This script backups odoo database, modules folder, /var/lib/odoo folder.
  • It protects database file with a password using 7zip package by recompressing it with a password.
  • Transfer backups to a remote FTP server.
  • Remove local backups.
  • Variables to update:
FTP_SERVER=XXX.XXX.XXX.XXX
FTP_USER=username
FTP_PASSWORD="ftp_password"
ADMIN_PASSWORD="admin_db_password"
FILE_PASSWORD="zip_password"
BCK_FOLDER=/odoo/backups
LOG=/root/backup.log
You can’t perform that action at this time.