borgmatic-collective / docker-borgmatic

Borgmatic in Docker
GNU General Public License v3.0
313 stars 88 forks source link

BORG_PASSPHRASE_FILE does not work #294

Closed televisi closed 5 months ago

televisi commented 5 months ago

Hello,

I'd like to set BORG_PASSPHRASE in a file, thus I decided to use BORG_PASSPHRASE_FILE environment. BORG_PASSPHRASE_FILE = /root/.ssh/borg/repoPass.txt

I then created a new file /root/.ssh/borg/repoPass.txt and save the passphrase inside it.

Unfortunately, the following error is presented in the log?

borgmatic 1.8.7 borg 1.2.7 apprise 1.6.0 Error: File /root/.ssh/borg/repoPass.txt does not exist or is empty. Crontab file exists, using it Running on startup...

What could have gone wrong here? Thanks

televisi commented 5 months ago

All good, it's PEBCAK... I saved the file in the wrong folder... d'oh!

Meant to be "/root/.ssh/repoPass.txt"