Skip to content

Backup Management

1. Backup Configuration

Each subscription can be configured with a backup server and retention policy.

Subscription Backup Fields

  1. Backup Server - Where backups are stored (Many2one, required for backups)
  2. Backup UUID - Identifier on the backup server (readonly, auto-generated)
  3. Backup State - Health indicator based on latest backup age
  4. Daily Backup Count - Number of daily backups to retain (default: 7)
  5. Weekly Backup Count - Weekly backups to retain (default: 2)
  6. Monthly Backup Count - Monthly backups to retain (default: 1)
  7. Keep Latest Backup - Minimum total backups to always keep (default: 7)
  8. Backup Lines - History of all backups with download/restore actions
  9. Backup Count - Total number of backups (computed)

Backup States

  • Normal: Latest backup is less than 1 day old
  • Warning: Latest backup is 1-5 days old
  • Danger: Latest backup is more than 5 days old
  • Not Configured: No backup server assigned

2. Backup Lines

Each backup is recorded as a backup line with metadata.

Fields

  1. Subscription - Parent subscription
  2. Backup Server - Where this backup is stored
  3. Backup Name - Filename of the backup
  4. Backup Size - Size in MB
  5. Backup Remote Line UUID - Server-side identifier
  6. Create Date - When the backup was created
  7. Comment - User-provided note

Actions

Action Description
Download Creates a temporary download link via the backup server
Restore Opens the restore confirmation wizard

3. Create Backup Wizard

Manually trigger a backup from the subscription form.

Fields

  1. Backup Format:
    • zip - Full backup including filestore
    • dump - Database only (no filestore)
  2. Comment - Optional note describing the backup

4. Restore Backup Wizard

Restore a subscription database from an existing backup line.

Fields

  1. Neutralize Database - Wipe sensitive data after restore (available for Odoo 16+)

Restore Warning

Restoring a backup replaces the current database entirely. This action cannot be undone. An action log entry is created for audit purposes.


5. Restore Local Database Wizard

Restore from a local file upload or URL instead of an existing backup line.

Fields

  1. Source (Selection):
    • upload - Upload a backup file directly (limited to files under 1GB)
    • url - Provide a direct download URL for larger files
  2. Backup File - Binary upload field (for upload source)
  3. Backup URL - Direct download URL (for URL source)
  4. File Name - Original filename

Supported Formats

Only .zip and .dump file extensions are accepted. The file is streamed to the server in 1MB chunks for efficiency.