Database Auto-Backup
auto_backup · OCA/server-tools
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 13 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
3 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.91 MB
Module directory on disk
Code analysis
0 migration notes
1 model
3 views
0 HTTP endpoints
Description
A tool for all your back-ups, internal and external!
Dependencies
- Odoo dependencies
- Python dependencies
- cryptography, paramiko<4.0.0, pysftp
- 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 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…
Loading…