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

influx restore requires a single positional argument even when --input is specified #21475

Closed
danxmoran opened this issue May 14, 2021 · 0 comments · Fixed by #21477
Closed
Assignees
Labels

Comments

@danxmoran
Copy link
Contributor

Steps to reproduce:

  1. Create a backup using influx backup
  2. Attempt to restore the backup using influx restore --input <path-to-the-backup>, as shown in our public docs

Expected behavior:
CLI attempts to restore the backup.

Actual behavior:
Error: must specify path to backup directory


The CLI is currently coded to require a single positional arg, for use as the input path. The --input option is effectively useless because of this.

To fix:

  1. Don't require a positional arg when --input is given
  2. Mark --input as deprecated / log a warning when it's used
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant