Commit Graph

9 Commits (38a0546ff17159ce2d53b786d965da3ef67cdd3a)

Author SHA1 Message Date
OCA-git-bot b5177dfef9 [UPD] README.rst 2022-10-01 14:51:34 +00:00
Anh Vu 60193a52a0 [15][MIG] 🎉 Migrate auto_backup 2022-09-21 07:18:59 +07:00
OCA-git-bot 142a787e40 [UPD] README.rst 2022-09-14 13:36:15 +07:00
simonev 3b361a7c11 [14.0][MIG]auto_backup 2022-09-14 13:36:15 +07:00
David Alonso // Solvos e2e6eeb00f [IMP] auto_backup: black, isort, prettier 2022-09-14 13:36:15 +07:00
OCA-git-bot 88b6ddc481 [UPD] README.rst 2022-09-14 13:36:15 +07:00
Aitor Bouzas 0b9c22c80a [MIG] auto_backup: Migration to 12.0
Added test coverage
Added requirements.txt for pysftp
Added in the roadmap the exact version of pysftp for this to work (0.2.8)
Added in the roadmap the problem with list_db=False
Adapted calls to message_post
2022-09-14 13:36:15 +07:00
Jairo Llopis 49ff8db5d2 [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.
2022-09-14 13:36:15 +07:00
Alessio Gerace c8a5deba64 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.
2022-09-14 13:36:15 +07:00