How mohamedmeftouh21/auto_database_backup works
Project type and purpose
• This is an Odoo addon module (“Automatic Database Backup”) that extends an existing Odoo installation to generate scheduled backups of the PostgreSQL database and store them on various targets (local file system, remote server via SSH/SFTP, Google Drive, Dropbox, OneDrive, Nextcloud, Amazon S3).
File structure
• Top‐level files
• __manifest__.py – declares module metadata, dependencies, data files, scheduled actions (cron).
• README.rst – high‐level description and supported platforms.
• controllers/
• auto_database_backup.py – likely defines web routes or HTTP handlers (e.g., callback endpoints for OAuth flows).
• models/
• db_backup_configure.py – holds the ORM model for backup configuration, schedule intervals, credentials, targets.
• data/
• ir_cron_data.xml – defines scheduled cron jobs that trigger the backup.
• mail_template_data.xml – templates for email notifications.
• wizard/
• dropbox_auth_code.py & views.xml – wizard to capture OAuth tokens for Dropbox integration.
• views/
• db_backup_configure_views.xml – UI forms and menus so the user can configure backup jobs.
• security/ir.model.access.csv – access control rules for the new model.
README for additional insights
• Confirms support for multiple storage backends.
• Points to Odoo v18.0 compatibility.