Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Extra Tools
  3. Automatic Database Backup To Local Server, Remote ServerGoogle Drive, Dropbox, Onedrive, Nextcloud and Amazon S3 Odoo19 v 19.0
  4. Sales Conditions FAQ

Automatic Database Backup To Local Server, Remote ServerGoogle Drive, Dropbox, Onedrive, Nextcloud and Amazon S3 Odoo19

by Ahmed Elkeshawy
Odoo

$ 115.61

v 19.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 1781
Technical Name apex_auto_database_backup
LicenseOPL-1
Versions 17.0 18.0 19.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 1781
Technical Name apex_auto_database_backup
LicenseOPL-1
Versions 17.0 18.0 19.0
  • Description
  • License

Advanced Database Backup Module

Complete Configuration Guide for All Backup Methods

Overview
Local Storage
FTP Server
SFTP Server
Google Drive
Dropbox
OneDrive
NextCloud
Amazon S3
Advanced Settings

📋 Module Overview

The Advanced Database Backup Module provides comprehensive backup solutions for Odoo databases with support for multiple storage destinations, automated scheduling, and secure credential management.

🔄 Automated Backups

Schedule automatic database backups with configurable retention policies and multiple format options.

☁️ Multi-Destination

Backup to local storage, cloud services (Google Drive, OneDrive, Dropbox, Amazon S3), or remote servers (FTP, SFTP, NextCloud).

🔐 Secure & Reliable

OAuth2 authentication, encrypted credentials, and comprehensive error handling with retry mechanisms.

🚀 Quick Start Guide

Install the Module

Install through Odoo Apps marketplace and navigate to Settings → Database Backup → Backup Configurations.

Create Backup Configuration

Click "Create" and fill in the basic information:

  • Name: Descriptive name for your backup configuration
  • Database Name: The Odoo database to backup
  • Master Password: Odoo master password for database access
  • Backup Format: ZIP (recommended) or Dump format

Select Backup Destination

Choose your preferred backup destination from the available options and follow the specific configuration guide for that method.

Configure Additional Settings

  • Auto Remove: Enable automatic deletion of old backups
  • Days to Remove: Set retention period (e.g., 30, 60, 90 days)
  • Notify User: Enable email notifications for backup status
  • User: Select user to receive notifications

Test and Activate

Test the connection to your backup destination and activate the configuration. The system will automatically schedule backups based on your settings.

💾 Local Storage Backup

Backup your database to a local directory on the Odoo server.

Select Backup Destination

Choose "Local Storage" from the Backup Destination dropdown.

Configure Backup Path

Specify the local directory path where backups will be stored:

  • Linux Example: /opt/odoo/backups/
  • Windows Example: C:\Odoo\Backups\

Set Directory Permissions

Ensure the Odoo user has write permissions to the backup directory:

# Create directory sudo mkdir -p /opt/odoo/backups/ # Set permissions (Linux) sudo chown odoo:odoo /opt/odoo/backups/ sudo chmod 755 /opt/odoo/backups/

Configure Retention Policy

Enable "Auto Remove" and set "Days to Remove" to automatically delete old backups.

⚙️ Technical Details

  • Backups are stored as compressed ZIP files containing database dump, filestore, and manifest
  • Automatic cleanup removes files older than specified days
  • No external dependencies required
  • Fastest backup method with no network latency

🌐 FTP Server Backup

Backup your database to a remote FTP server.

Select Backup Destination

Choose "FTP" from the Backup Destination dropdown.

Configure FTP Connection

Fill in the FTP server details:

Field Description Example
FTP Host FTP server address ftp.example.com
FTP Port FTP server port (usually 21) 21
FTP User FTP username odoo_backup
FTP Password FTP password ********
FTP Path Target directory on FTP server /backups/odoo/

Test Connection

Click "Test Connection" to validate the FTP credentials and server accessibility.

Connection Successful

Security Considerations

  • Use FTPS (FTP over SSL) if available for secure transmission
  • Configure firewall rules to allow FTP connections
  • Ensure backup files are not publicly accessible on the FTP server

🔐 SFTP Server Backup

Backup your database to a remote SFTP server using SSH.

Select Backup Destination

Choose "SFTP" from the Backup Destination dropdown.

Configure SFTP Connection

Fill in the SFTP server details:

Field Description Example
SFTP Host SFTP server hostname or IP sftp.example.com
SFTP Port SFTP server port (usually 22) 22
SFTP User SSH username odoo_user
SFTP Password SSH password ********
SFTP Path Target directory on SFTP server /home/odoo_user/backups/

Test Connection

Click "Test Connection" to validate the SFTP credentials and server accessibility.

Connection Successful

Advanced Options

For enhanced security, consider using SSH key-based authentication:

# Generate SSH key pair (if not already exists) ssh-keygen -t rsa -b 4096 -C "odoo_backup@example.com" # Copy public key to SFTP server ssh-copy-id odoo_user@sftp.example.com

📊 Google Drive Backup

Backup your database to Google Drive using OAuth2 authentication.

Google Cloud Platform Setup

  1. Go to Google Cloud Console
  2. Create a new project or select an existing one
  3. Navigate to "APIs & Services" → "Library"
  4. Enable "Google Drive API"
  5. Go to "Credentials" and create OAuth 2.0 Client ID
  6. Set application type to "Web application"
  7. Add authorized redirect URI:
    https://your-odoo-domain.com/google_drive/authentication
  8. Copy the Client ID and Client Secret

Odoo Configuration

  1. Select "Google Drive" as Backup Destination
  2. Enter the Client ID and Client Secret from Google Cloud Console
  3. Note the auto-generated Redirect URI (should match the one in GCP)
  4. Click "Setup Token" to initiate OAuth2 flow
  5. You'll be redirected to Google authentication
  6. Grant permissions to the application
  7. You'll be redirected back to Odoo automatically

Configure Google Drive Folder

Specify the target folder in Google Drive:

  • Folder ID: The unique identifier for the Google Drive folder
  • To find Folder ID: Open the folder in Google Drive, the URL contains the ID
    https://drive.google.com/drive/folders/FOLDER_ID_HERE

Token Management

  • Access tokens automatically refresh when expired
  • Manual token reset available via "Reset Token" button
  • Token validity displayed for reference

📦 Dropbox Backup

Backup your database to Dropbox using OAuth2 authentication.

Dropbox App Configuration

  1. Go to Dropbox Developer Portal
  2. Click "Create app"
  3. Choose:
    • API: Scoped access
    • Type: Full Dropbox
    • Name: Your app name (e.g., "Odoo Backup")
  4. In app settings, note the App key and App secret
  5. Under "Permissions", ensure files content access is enabled

Odoo Configuration

  1. Select "Dropbox" as Backup Destination
  2. Enter the App Key and App Secret from Dropbox
  3. Click "Setup Token"
  4. A wizard opens with Dropbox authorization URL
  5. Click "Get Authorization Code" link
  6. Authorize your Dropbox account
  7. Copy the authorization code
  8. Paste the code in the wizard and confirm

Configure Dropbox Folder

Specify the target folder path in Dropbox:

  • Dropbox Folder: Path where backups will be stored
  • Example: /OdooBackups
  • Folder will be created automatically if it doesn't exist

Advanced Features

  • Chunked upload for large backup files
  • Automatic retry mechanism for network issues
  • Resumable upload sessions for interrupted transfers

🗂️ OneDrive Backup

Backup your database to Microsoft OneDrive using OAuth2 authentication.

Azure App Registration

  1. Go to Azure Portal
  2. Navigate to "Azure Active Directory" → "App registrations"
  3. Click "New registration"
  4. Set application name and redirect URI:
    https://your-odoo-domain.com/onedrive/authentication
  5. After creation, note the Application (client) ID
  6. Generate a Client secret in "Certificates & secrets"

Configure API Permissions

  1. Go to "API permissions" → "Add a permission"
  2. Choose "Microsoft Graph" → "Delegated permissions"
  3. Add the following permissions:
    • Files.ReadWrite.All
    • offline_access
    • openid
  4. Click "Grant admin consent" for the permissions

Odoo Configuration

  1. Select "OneDrive" as Backup Destination
  2. Enter the Client ID and Client Secret from Azure
  3. Note the auto-generated Redirect URI
  4. Click "Setup Token" to initiate OAuth2 flow
  5. You'll be redirected to Microsoft authentication
  6. Login and grant permissions
  7. Automatic redirect back to Odoo

Configure OneDrive Folder

Specify the target folder in OneDrive:

  • Folder ID: Unique identifier for the OneDrive folder
  • To find Folder ID: Browse to the folder in OneDrive web
    URL format: https://onedrive.live.com/?id=ROOT&cid=FOLDER_ID

☁️ NextCloud Backup

Backup your database to a NextCloud instance using WebDAV protocol.

Prerequisites

  • NextCloud instance with WebDAV enabled
  • User account with appropriate permissions
  • Network accessibility from Odoo server

NextCloud Configuration

Fill in the NextCloud connection details:

Field Description Example
Domain Name Your NextCloud instance URL https://nextcloud.example.com
User Name NextCloud username odoo_user
Password NextCloud password ********
Folder ID Target folder name in NextCloud OdooBackups

Test Connection

Click "Test Connection" to validate NextCloud credentials and accessibility.

Connection Successful

Security Considerations

  • Ensure WebDAV access is enabled on NextCloud
  • Consider using app-specific passwords for enhanced security
  • Verify folder permissions in NextCloud
  • Use HTTPS for secure communication

📊 Amazon S3 Backup

Backup your database to Amazon S3 cloud storage.

AWS S3 Configuration

  1. Go to AWS S3 Console
  2. Create a new S3 bucket with unique name
  3. Choose region close to your users for better performance
  4. Note the bucket name for Odoo configuration

IAM User Creation

  1. Go to AWS IAM Console → Users → Add user
  2. Set username and choose "Programmatic access"
  3. Attach existing policies: AmazonS3FullAccess (or create custom policy)
  4. Save the Access Key ID and Secret Access Key

Odoo Configuration

Fill in the AWS S3 details:

Field Description Example
Amazon S3 Access Key IAM user Access Key ID AKIAIOSFODNN7EXAMPLE
Amazon S3 Secret Key IAM user Secret Access Key wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Bucket Name Your S3 bucket name odoo-backup-bucket
File Name Folder path within bucket backups/

Test Connection

Click "Test Connection" to validate AWS credentials and bucket accessibility.

Connection Successful

Cost Optimization

  • Configure S3 lifecycle rules for automatic archival
  • Consider using S3 Intelligent-Tiering for cost savings
  • Set up cost allocation tags for monitoring
  • Enable S3 storage analytics for usage insights

⚙️ Advanced Configuration

🔧 Backup Schedule Management

Configure when and how often backups are executed:

Cron Job Configuration

The module uses Odoo's built-in cron scheduler. To modify the schedule:

  1. Go to Settings → Technical → Scheduled Actions
  2. Find "Backup : Automatic Database Backup"
  3. Edit the execution parameters:
    • Interval Number: Frequency value (e.g., 1)
    • Interval Type: days, hours, minutes
    • Next Execution: When to run next
    • Number of Calls: -1 for unlimited

Recommended Schedule

  • Production: Daily during low-usage hours (e.g., 2:00 AM)
  • Development: Weekly or before major updates
  • Testing: Manual triggers as needed

📧 Email Notifications

Configure backup status notifications:

Enable Notifications

  • Check "Notify User" in backup configuration
  • Select the user to receive notifications
  • Customize email templates if needed

Notification Types

  • Success: Sent when backup completes successfully
  • Failure: Sent when backup encounters errors
  • Both include detailed information about the backup operation

🛡️ Security Best Practices

🔑 Credential Management

  • Use application-specific passwords for cloud services
  • Regularly rotate access tokens and API keys
  • Never store credentials in version control

🌐 Network Security

  • Implement firewall rules for FTP/SFTP connections
  • Use VPN for remote server access when possible
  • Enable SSL/TLS for all external connections

📊 Monitoring & Auditing

  • Monitor backup logs for unauthorized access attempts
  • Set up alerting for failed backup operations
  • Regularly test backup restoration procedures

🚨 Troubleshooting Common Issues

Permission Errors

  • Check file/directory permissions for local backups
  • Verify IAM policies for S3 access
  • Confirm OAuth scopes for cloud services

Network Issues

  • Check firewall rules and network connectivity
  • Verify DNS resolution for remote hosts
  • Test network bandwidth for large backups

Authentication Problems

  • Re-generate OAuth tokens if expired
  • Check token expiration dates
  • Verify redirect URIs match exactly

Storage Space

  • Monitor available disk space for local backups
  • Set appropriate retention policies
  • Consider compression for large databases
↑
Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with