Borgbackup, Private SSH Keys, and MacOS
Thursday, February 23, 2023
I use a MacBook Pro for work. It’s not ideal, but better than Windows. I also use the phenomenal Borg and Borgmatic for my backups up to BorgBase. I wanted to get my work laptop backed up in case of an issue, but was having problems getting OSX Ventura to read the unlocked private SSH key I use to connect. I ended up concocting this script which searches for the correct environment variables and sets them so the cronjob can use the key.
…