Odoo-Infrastructure (Backup Policies)
Odoo-Infrastructure allows you to set up custom backups for databases. The behavior of backups is determined by the created backup policy. Backup policy consists of backup rules that indicate all available settings for backups.
To configure backups, do the following:
- While in the Odoo-Infrastructure application, click Backup Policies.
- On the Backup Policies page, click Create to create a custom policy.
- Enter the policy name. To add a new backup rule, click Add an item.
- On the form that opens, enter a rule name.
- Select the Type of backup. There are two types of backups available:
- Automatic rule - backups are automatically executed periodically
- Manual rule - backups will be performed manually
- Select the Backup Format. Available formats are ZIP (with FS), SQL (pg_dump only) and Auto (backup format will be selected automatically).
- In the Max backup count field, you can specify the maximum number of backups allowed.
- In the On Overflow field, you can select the action to be performed on exceeding the maximum number of backups or disc space overflow. The available options are: Raise error or Delete oldest.
- In the TTL field, specify the time for backup after which it will be removed. In the TTL UoM field you can select the units of measure.
- If you select the Automatic rule type of backup, you will be able to specify time period between automatic backups (Period). In the Period UoM field, select the units of measure.
- The Time Rounding field indicates the time to do a backup. This field is assumed to be time in UTC timezone.
- Save created rule. You can add more than one rule to one backup policy, for example, one rule for automatic everyday backup, and another one for manual backups.
When you creating or editing your databases, on the Backups tab, you can select created backup policy for this database. You will see policy rules and all backup options below.