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

fix: allow cross platform remote backups #25026

Open
wants to merge 1 commit into
base: master-1.x
Choose a base branch
from

Conversation

skladd
Copy link
Contributor

@skladd skladd commented May 28, 2024

Closes #8256

As now, in v1.x influxd backup DBRetentionAndShardFromPath() uses the local path separator, e.g. "/" on Unix. This does not work when restoring data from systems using the other one, i.e. "" on Windows. The proposed change tries both separators before returning an error.

  • I've read the contributing section of the project README.
  • Signed CLA (if not already signed).

@skladd skladd changed the title influxd v1.x backup: allow cross platform remote backups fix: allow cross platform remote backups May 28, 2024
Closes influxdata#8256

As now, in v1.x influxd backup DBRetentionAndShardFromPath() uses the local path separator, e.g. "/" on Unix. This does not work when restoring data from systems using the other one, i.e. "\" on Windows.
The proposed change tries both separators before returning an error.

- [X] I've read the contributing section of the project [README](https://github.com/influxdata/influxdb/blob/main/README.md).
- [X] Signed [CLA](https://influxdata.com/community/cla/) (if not already signed).
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.

1 participant