- sudo apt install awscli p7zip-full
- pip install awscli --upgrade --user
- 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
aws (awscli) link might not work. If you are on Ubuntu add to ~/.profile the following line:
export PATH=~/.local/bin:$PATH
./back
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
Diogo Duarte [email protected]