Commit Graph

3 Commits (4393b3e1866a8e25bd225587fa6017efad3fe0c4)

Author SHA1 Message Date
Javi Melendez 4393b3e186 [FIX] auto_backup: bad reference to field sftp_private_key (#423)
Bump module version to 8.0.1.0.1
2023-12-01 16:50:51 +01:00
Jairo Llopis 3295a72bde [auto_backup] Refactor.
- Follow template README.
- Remove HTML README.
- Move models to models folder.
- Model and view file names follow guidelines.
- Unused methods cleanup.
- Remove unneeded `.pot` file.
- Fix permissons.
- Follow PEP8 in names everywhere.
- Set more descriptive field names.
- Disable backups for other databases, for security.
- Remove db name from generated file, for easier cleanup.
- EAFP logic everywhere.
- More descriptive name.
- Data files moved to YAML, with cleaner ir.cron record creation.
- Add permissions for db.backup model.
- Icons.
- Update tests with new format.
- Storage method is a selectable, for easier extensibility.
- Instead of custom mailing, it just has a mail thread where you can subscribe.
- Should fix almost all comments in https://github.com/OCA/server-tools/pull/203.
- Reduce headers.

This respects the upstream license choice (GPL/AGPL) but reduces
verbosity.

It would be ideal to have everything under AGPL though.
2023-12-01 16:50:51 +01:00
Alessio Gerace 23c62612bd Open FTP session on the last moment possible
Used to open  fp = open(file_path,'wb') a few lines before it was needed. This shouldn't be too much of a problem but opening and closing it right after eachother keeps the session open for less time and there are less chances on failure.
2023-12-01 16:50:51 +01:00