Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

odoo_backup_sh: added ability to derive method, that stores backup #1003

Open
wants to merge 2 commits into
base: 13.0
Choose a base branch
from

Conversation

em230418
Copy link

Возникла задача хранить бэкапы еще и локально. Для требуется dump_stream для получения доступа к содержимому бэкапа и info_file_content чтобы туда вставлять отметку о том, что был создан бэкап еще и локально.

Например вот так: em230418/saas-addons@895c1a5#diff-7fa3e6709045fc6052ffd0be8866e15cR12-R30

@em230418 em230418 marked this pull request as ready for review August 21, 2020 05:54
@em230418
Copy link
Author

@trojikman @yelizariev можно смотреть.

Copy link
Collaborator

@yelizariev yelizariev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Для твоей задачи недостаточно get_dump_stream_and_info_file расширить?

`1.0.3`
-------

- **Improvement:** Added ability to derive method, that stores backup
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- **Improvement:** Added ability to derive method, that stores backup
- **Improvement:** Add ability to make a hook on creating backup

@em230418
Copy link
Author

em230418 commented Sep 7, 2020

Для твоей задачи недостаточно get_dump_stream_and_info_file расширить?

Вроде как достаточно. Пока не проверял. Но тут смущает, что в переопрделенном методе, который называется get_dump_stream_and_info_file будет нужно создавать файл (саму локальную копию бэкапа).

В методе с названием _make_backup уже предполагается, что создается бэкап на удаленном хранилище. Ну и помимо удаленного хранилища в переопределенном методе создается также локальный

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants