TIP: You can type at any time to perform a new search.
Database Auto-Backup
auto_backup · OCA/server-tools
- Repository
- OCA/server-tools · module folder · Try on Runboat
- Module version
- 1.0.1
- Category
- Tools
- Folder size
- 0.9 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/server-tools
- Last tracking update
- 2026-08-07 09:06:26
- Authors
- Odoo Community Association (OCA), Agile Business Group, LasLabs, Yenthe Van Ginneken, AdaptiveCity, Grupo ESOC Ingenieria de Servicios
- Maintainers
- Odoo Community Association (OCA), Agile Business Group, LasLabs, Yenthe Van Ginneken, AdaptiveCity, Grupo ESOC Ingenieria de Servicios
- Committers
- OCA-git-bot, oca-ci, Bhavesh Heliconia
- Odoo dependencies
- Python dependencies
- cryptography, paramiko<4.0.0, pysftp
- System dependencies
- None
- Required by
- None
- Description
A tool for all your back-ups, internal and external!
Code Analysis ⓘ
Views touched (3)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_backup_conf_form |
db.backup | form | New | |
view_backup_conf_list |
db.backup | list | New | |
view_backup_conf_search |
db.backup | search | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (1)
New fields (10)
-
backup_formatSelectiondefault='zip'help='Choose the format for this backup.' args: [('zip', 'zip (includes filestore)'), ('dump', 'pg_dump custom format (without filestore)')] -
days_to_keepIntegerdefault=0help='Backups older than this will be deleted automatically. Set 0 to disable autodeletion.'required=True -
folderChardefault=<expr>help='Absolute path for storing the backups'required=True -
methodSelectiondefault='local'help='Choose the storage method for this backup.' args: [('local', 'Local disk'), ('sftp', 'Remote SFTP server')] -
nameCharcompute='_compute_name'help='Summary of this backup process'store=True -
sftp_hostCharhelp='The host name or IP address from your remote server. For example 192.168.0.1' args: 'SFTP Server' -
sftp_passwordCharhelp='The password for the SFTP connection. If you specify a private key file, then this is the password to decrypt it.' args: 'SFTP Password' -
sftp_portIntegerdefault=22help='The port on the FTP server that accepts SSH/SFTP calls.' args: 'SFTP Port' -
sftp_private_keyCharhelp='Path to the private key file. Only the Odoo user should have read permissions for that file.' args: 'Private key location' -
sftp_userCharhelp='The username where the SFTP connection should be made with. This is the user on the external server.' args: 'Username in the SFTP Server'
-
action_backup(self)Run selected backups. -
action_backup_all(self)@api.modelRun all scheduled backups. -
action_sftp_test_connection(self)Check if the SFTP settings are correct. -
backup_log(self)@contextmanagerLog a backup result. -
cleanup(self)Clean up old backups. -
cleanup_log(self)@contextmanagerLog a possible cleanup failure. -
filename(when, ext='zip')@staticmethodGenerate a file name for a backup. :param datetime.datetime when: Use this datetime instead of :meth:`datetime.datetime.now`. :param str ext: Extension of the file. Default: dump.zip -
sftp_connection(self)Return a new SFTP connection with found parameters.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…