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

Remote backup (linux -> windows) #8256

Closed
ghost opened this issue Apr 5, 2017 · 8 comments
Closed

Remote backup (linux -> windows) #8256

ghost opened this issue Apr 5, 2017 · 8 comments

Comments

@ghost
Copy link

ghost commented Apr 5, 2017

I cannot do a remote backup of a linux influxdb instance from a windows machine.

I get the following error:
backup: expected database, retention policy, and shard id in path: database/years/13944

The error seems to be related to the following line.
https://github.com/influxdata/influxdb/blob/master/cmd/influxd/backup/backup.go#L381
I just assume, that "filepath.Separator" returns the windows separator "\" which than is used to split a linux path with "/" as separator.

@shotor
Copy link

shotor commented May 2, 2017

Did you manage to find a work around that doesn't involve switching to a Linux machine?

@ghost
Copy link
Author

ghost commented May 3, 2017

No, I did not find any work around for that. Using a linux machine.

@hpbieker
Copy link
Contributor

Any chance this will be fixed so that we can back up to Windows machines? :-)

@pkenell
Copy link

pkenell commented Mar 14, 2018

I have the same issue, but other way around. Windows -> Linux

@nzhammer
Copy link

nzhammer commented Apr 2, 2018

Same issue here, can't backup from Linux -> Windows

@dgnorton dgnorton added the 1.x label Jan 7, 2019
@stale
Copy link

stale bot commented Jul 24, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 24, 2019
@stale
Copy link

stale bot commented Jul 31, 2019

This issue has been automatically closed because it has not had recent activity. Please reopen if this issue is still important to you. Thank you for your contributions.

@stale stale bot closed this as completed Jul 31, 2019
@darrepac
Copy link

darrepac commented May 6, 2024

Seems this problem is still present (trying to backup a linux influx instance from windows)

skladd added a commit to ast-dd/influxdb that referenced this issue May 27, 2024
skladd added a commit to skladd/influxdb that referenced this issue May 28, 2024
skladd added a commit to skladd/influxdb that referenced this issue 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).
skladd added a commit to skladd/influxdb that referenced this issue May 29, 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
Projects
None yet
Development

No branches or pull requests

6 participants