-
-
Notifications
You must be signed in to change notification settings - Fork 217
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
base: master
Are you sure you want to change the base?
Conversation
a05dfb2
to
9e30344
Compare
9e30344
to
1aca3fd
Compare
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", |
There was a problem hiding this comment.
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"), |
There was a problem hiding this comment.
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 " |
There was a problem hiding this comment.
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.
… 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.