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

Improve backup/restore classes #1

Open
nvarscar opened this issue Feb 20, 2023 · 0 comments
Open

Improve backup/restore classes #1

nvarscar opened this issue Feb 20, 2023 · 0 comments
Labels
core Python-related, no Postgres knowledge needed enhancement New feature or request

Comments

@nvarscar
Copy link
Collaborator

Currently, backup/restore classes use arrays of strings to define the corresponding OS commands.

        self.on_start_commands = [f'gsutil cp "{{path}}" "{self.temp_path}/{{filename}}"']
        self.on_finish_commands = [f'rm -f "{self.temp_path}/{{filename}}"']
        self.command = f'{{binary}} {{options}} -d "{{database}}" "{self.temp_path}/{{filename}}"'

This should be improved to use pre/exec/post methods and an abstract class should be created that requires those methods to be implemented.

@nvarscar nvarscar added enhancement New feature or request core Python-related, no Postgres knowledge needed labels Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Python-related, no Postgres knowledge needed enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant