OdooWiki OCA HUB

Filesystem Storage Backup

fs_storage_backup folder_open OCA/storage open_in_new
Technical License: AGPL-3

With this module you can configure one or more database backup locations.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Lets you mark filesystem storage locations as backup destinations and automatically saves a daily database backup there, deleting backups older than the retention period you set.

This module adds backup settings to each filesystem storage record in Odoo. On the storage form you get a new "Backups" section where you can tick "Use For Backups", choose whether the filestore is included, set the backup directory, define the filename pattern, and set how many days backups are kept.

A scheduled job runs once a day (at midnight) and, for every storage marked for backups, writes a database dump to that storage and then removes files older than the retention period. If the filestore option is enabled the backup is a zip archive; otherwise it is a plain database dump.

Business rules and automatic behaviour: - The retention period must be at least 1 day, otherwise Odoo refuses to save. - The filename is built automatically from the database name, date/time and file extension. - If a backup file with the same name already exists, the backup is skipped with an error. - Failures during backup or cleanup are logged and posted as messages on the storage record, using the "Backup Failed" and "Backup Cleanup Failed" subtypes.

The storage record now also has a chatter, so you can follow backup activity and see failure notifications. The module touches the fs.storage model and depends on the filesystem storage and mail features.

Depends on

Required by other modules

Models and fields (1)
  • fs.storage · new modelbackup_dir (Backup Directory), use_for_backup (Use For Backups), backup_keep_time (Keep backups of (in days)), backup_filename_format (Backup Filename), backup_include_filestore (Include Filestore In Backup)

Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 16.0
  • Go to Settings > Technical > FS Storage > FS Storage
  • Select a filesystem you want to use for backups. NOTE: Make sure you don't use the filestore as backup location otherwise it's possible you'll back up the backup
  • Enable Use For Backups
  • Follow it (using the chatter) if you want to get notified when a backup fails
  • To know if the backup is working correctly you can run the scheduled action (Backup database and delete old backups) manually to test it.

The backup is done automatically by a scheduled action (Backup database and delete old backups).

No verified information in OCA: Installation.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.