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

Add a parameter to configure if cleaning the database during a backup… #400

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eberonsh
Copy link

@eberonsh eberonsh commented Oct 20, 2021

… restoration.

#enhancement

Description

Add a parameter to the command dbrestore. This option allows to set if the connector sends or not a clean parameter in the restore command.

Fixes # (issue)

Why should this be added

The restore command sends by default a --clean argument and there is no option to remove it in case it is causing a problem with the restoration process.

Explain value.
Adding this option allows to control sending the --clean to the restore command in case of any trouble.

make_option("-c", "--decrypt", default=False, action='store_true',
help="Decrypt data before restoring"),
make_option("-p", "--passphrase", help="Passphrase for decrypt file", default=None),
make_option("-p", "--passphrase",
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove unneeded formatting changes from this PR.

make_option("-z", "--uncompress", action='store_true', default=False,
help="Uncompress gzip data before restoring")
help="Uncompress gzip data before restoring"),
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove unneeded formatting changes from this PR.


option_list = BaseDbBackupCommand.option_list + (
make_option("-d", "--database", help="Database to restore"),
make_option("-i", "--input-filename", help="Specify filename to backup from"),
make_option("-I", "--input-path", help="Specify path on local filesystem to backup from"),
make_option("-s", "--servername",
help="If backup file is not specified, filter the "
"existing ones with the given servername"),
help="If backup file is not specified, filter the "
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove unneeded formatting changes from this PR.

@Archmonger Archmonger marked this pull request as draft April 29, 2022 07:51
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

3 participants