Skip to content

diogocduarte/backup-odoo-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backup Odoo Server to S3

Requirements:

  • sudo apt install awscli p7zip-full
  • pip install awscli --upgrade --user

Install:

  • aws configure
  • git clone
  • vim ~/.bkodoorc (add the following vars)
SERVER_NAME='odoogap-www-server'
DB_NAME='database1'
DATA_FOLDER='/opt/odoo/data'
S3_URL="s3://production-odoo/backups/"
SLACK_HOOK="https://hooks.slack.com/services/SED....."
wget -O - https://raw.githubusercontent.com/diogocduarte/backup-odoo-s3/master/install.sh | bash

Troubleshooting

aws (awscli) link might not work. If you are on Ubuntu add to ~/.profile the following line:

export PATH=~/.local/bin:$PATH

Usage:

./back

Crontab:

crontab -e (add the following)

# You might need to add this line
PATH=/opt/odoo/.local/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h  dom mon dow   command
30 9 * * * /opt/odoo/.backup/back >/dev/null 2>&1

Author:

Diogo Duarte [email protected]

About

Backup odoo server to S3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages