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

Allow setting sftp.command via environment variable #4599

Open
darkdragon-001 opened this issue Dec 26, 2023 · 1 comment
Open

Allow setting sftp.command via environment variable #4599

darkdragon-001 opened this issue Dec 26, 2023 · 1 comment

Comments

@darkdragon-001
Copy link
Contributor

Output of restic version

restic 0.15.2 compiled with go1.20.3 on linux/amd64

What should restic do differently? Which functionality do you think we should add?

Allow setting the SFTP command via environment variable. This would allow configuring the SFTP backend completely via environment variables like the other backends.

What are you trying to do? What problem would this solve?

This would allow me to set environment variables for all backends I want to use and then just change the repo to switch between repositories.

Did restic help you today? Did it make you happy in any way?

Moving a restic repo via rclone from S3 to SFTP just worked.

@bluppfisk
Copy link

agree it would be nice to have this. I need to use -o sftp.command=ssh -4 nas.mydomain.com -s sftp to force ipv4 (the interface isn't listening on ipv6 but the domain resolves to an ipv6 first)

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

No branches or pull requests

2 participants