-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 on windows #505
Comments
Hey, thanks for the suggestion. At the moment, restic depends on an external command Maybe you can install |
I'd like to share some information regarding using plink.exe (from the Putty family) for sftp on Windows: I hacked src/restic/backend/sftp/sftp.go to look for a couple of environment variables that give the location of the plink executable and my private key ppk file, and if they are defined construct the ssh command line like so: /path/to/plink.exe -s -l username -i /path/to/myprivatekey.ppk hostname sftp I have not done extensive testing, but listing snapshots, backup, and restore seem to work. "restic init" fails with "ssh": executable not found, so obviously there's another spot that needs some work to use plink.exe instead of the hardcoded "ssh". |
I'm sorry to ask a maybe not related question to restic.
What is the simplest way to use sftp on windows ? I know putty i cannot make it work with restic.
Maybe it's on the roadmap to don't need any external ssh cmd ?
The text was updated successfully, but these errors were encountered: