I’ve struggled with this one for a while now, so it’s time to ask…
What is a good, safe way of passing the repository password to a scheduled task running on a Synology NAS?
My initial thought was to set the “RESTIC_PASSWORD” environment variable for each user that restic runs for, however the environment is not persistent between sessions, so when a scheduled task runs for a user, it starts with the standard environment.
The disks are not encrypted, so I don’t want to save a plain text file with the password in it, the same goes for the scheduled task, I don’t want to save the password in the command to be run because chances are that piece of information is not encrypted when it is saved to disk.
Maybe I’m looking at this in the wrong way completely, so any suggestions are more than welcome.
PS. The reason the disks aren’t encrypted is because it reduces the max read/write speed too much.