-
How do I specify a custom ssh config file in a profile? I have
This works: $ restic -r sftp://hetzner-storage-box/ -p pass-miller-restic-repo-1 --option sftp.args="-F /home/peter/work/hetzner-restic-repo1/backup-ssh.config" snapshots How can I create a profile so that the $ resticprofile -c ~/work/backup/profiles.yaml hetzner.snapshots I've tried variations of: hetzner:
repository: sftp://hetzner-backup/
password-file: /home/peter/store-restic-password
# also tried:
# option: "sftp.args=-F /home/peter/work/hetzner-restic-repo1/backup-ssh.config"
option:
- "sftp.args=-F /home/peter/work/hetzner-restic-repo1/backup-ssh.config"
backup:
source:
- /home/peter but without success. (The Restic's Environment Variables says:
I could not find any environment variables that control options for ssh or sftp (openssh). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey! It should work with the I suspect it could be an issue with the You can run resticprofile with When I try I can see it's sending the parameter: |
Beta Was this translation helpful? Give feedback.
-
DUH! My mistake. In the So there was a problem, just much simpler than I thought. Thanks, @creativeprojects for confirming that I was on the right track and that the options parameter wasn't the problem. |
Beta Was this translation helpful? Give feedback.
DUH!
My mistake.
In the
backup-ssh.config
I called the hosthetzner-storage-box
, but in the profile definition, I referenced the host assftp://hetzner-backup/
. Once I changed one to match the other, it worked. Both for option as a scalar and for option as an array.So there was a problem, just much simpler than I thought. Thanks, @creativeprojects for confirming that I was on the right track and that the options parameter wasn't the problem.
--dry-run
was the key debugging tip.