cupcakearmy / autorestic

Config driven, easy backup cli for restic.
https://autorestic.vercel.app/
Apache License 2.0
1.32k stars 71 forks source link

configure restic's environment variables #237

Open FlorianEndel opened 2 years ago

FlorianEndel commented 2 years ago

The temporary directory restic is using can (only) be configured with the environment variable TMPDIR. restic does not provide a command line parameter for this configuration. (restic-manual: temporary files)

Therefore it cannot be configured using autorestic.yml.

autorestic allows to set arbitrary command line parameters with options

It would be nice to have a similar system to configure arbitrary environment variables with autorestic.yml.

rdelaage commented 2 years ago

I might work on this in early 2023

rdelaage commented 2 years ago

@FlorianEndel It is not possible to set environment variables per location but it is possible to set them per backend https://autorestic.vercel.app/backend/env#example-with-backblaze-b2

FlorianEndel commented 2 years ago

@FlorianEndel It is not possible to set environment variables per location but it is possible to set them per backend https://autorestic.vercel.app/backend/env#example-with-backblaze-b2

Thank you! I wasn't aware of that. This resolves the issue for me. I also updated my corresponding question: https://github.com/cupcakearmy/autorestic/discussions/232