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

sftp backend fails in path, if used from Windows #568

Closed
viric opened this issue Aug 11, 2016 · 3 comments
Closed

sftp backend fails in path, if used from Windows #568

viric opened this issue Aug 11, 2016 · 3 comments
Assignees

Comments

@viric
Copy link
Contributor

viric commented Aug 11, 2016

Output of restic version

current master

Expected behavior

restic backup -r sftp://remote//path/to/go
(back up normally)

Actual behavior

\path\to\go\data does not exist

The same command, if run from linux, works fine.

@viric
Copy link
Contributor Author

viric commented Aug 11, 2016

The backslashes are introduced by "filepath.Clean" in https://github.com/restic/restic/blob/master/src/restic/backend/sftp/sftp.go#L255

@fd0
Copy link
Member

fd0 commented Aug 11, 2016

Oh, good catch, thanks!

@fd0
Copy link
Member

fd0 commented Aug 11, 2016

can you please give the code in the branch fix-568 a try and report back?

@fd0 fd0 closed this as completed in #569 Aug 19, 2016
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

2 participants