i want to take backup of odoo database i write following code but nor my folder is created or backup is executed please guide me in above issue.Thanks in advance.
#!/bin/bash
# vars
BACKUP_DIR=~/odoo_backups
ODOO_DATABASE=crm
ADMIN_PASSWORD=
# create a backup directory
mkdir -p bkup
# create a backup
curl -X POST \
-F "master_pwd=$ root" \
-F "name=${crm}" \
-F "backup_format=zip" \
-o bkup.date + %F.zip \
http://localhost:8069/web/database/backup
crontab -e
you can backup Odoo using this module.
\https://apps.odoo.com/apps/modules/14.0/auto_backup_odoo/