Auto Backup Fs File
auto_backup_fs_file · OCA/server-tools
-
Security25/25No findings
-
Activity20/25Last human commit 11 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 17.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
db_backup_fs_file_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module enhances the database backup functionality in Odoo by introducing support for storing backups as files using the fsspec library. It is designed to address the need for reliable and flexible backup solutions, enabling businesses to safeguard their data by storing backups on various filesystems, including cloud storage providers, network drives, and local secure storage.
By integrating with the fs_file addon from the OCA storage repository, this module allows users to automate the backup process and store the resulting files in a configured filesystem. It provides an easy-to-use interface for configuring backup methods, managing stored backups, and ensuring data integrity for disaster recovery or multi-environment setups.
Dependencies
- Odoo dependencies
- Python dependencies
- cryptography, paramiko<4.0.0, pysftp, fsspec>=2025.3.0, python_slugify, fsspec>=2024.5.0
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
db_backup_fs_file_form_view |
db.backup.fs.file.form.view | db.backup.fs.file | form | New |
db_backup_fs_file_search_view |
db.backup.fs.file.search.view | db.backup.fs.file | search | New |
db_backup_fs_file_tree_view |
db.backup.fs.file.tree.view | db.backup.fs.file | tree | New |
view_backup_conf_form |
db.backup | form | Inherits auto_backup.view_backup_conf_form | |
view_backup_conf_tree |
db.backup | tree | Inherits auto_backup.view_backup_conf_tree |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
-
fs_file_backup_countIntegercompute='_compute_fs_file_backup_count' -
fs_file_backup_idsOne2many → db.backup.fs.filecomodel_name='db.backup.fs.file'inverse_name='db_backup_id'string='Fs File Backups' -
methodSelectionondelete={'fs_file': 'cascade'}selection_add=[('fs_file', 'Fs File')] -
responsible_idMany2one → res.usershelp='User to be notified.' args: 'res.users'
-
action_backup(self)Override the action_backup method to add the fs_file method. -
action_open_fs_backups_view(self) -
cleanup(self)Extend cleanup to fs_file backups.
-
db_backup_idMany2one → db.backuprequired=Truestring='DB Backup' args: 'db.backup' -
is_expiredBooleancompute='_compute_is_expired'help='Indicates whether the backup has exceeded its storage time.' -
nameCharrequired=True args: 'Backup Filename'
-
fs_storage(self)@api.model -
get_fs_storage_filename(self)
Loading…