OK, following your encouragement, my approach was:
- read the yunohost forum guide to using the BorgBase paid (or free up to 10gb!) service, and the BorgBase guide to making an SSH key.
- SSH into the yunohost server, type
$ ls -a
to confirm there’s a.ssh
folder, and then typecd .ssh
- type
$ ssh-keygen -t ed25519
and follow the prompts to create an arbitrarily named fileborgbase
which is the private key. - type
$ cat borgbase.pub
to give the public key, which can be copied so it’s ready to paste when asked for by BorgBase when setting up a repository there. - make BorgBase account, click on the “Repositories” tab/link at the top, then on the big orange “New repo” button.
- follow the prompts to create a repo per my needs (ok, I’m a noob, I guessed my needs!), pasting in the public key when indicated.
edited to add: 7. realise the public key I’ve pasted into the BorgBase web-portal is not the one that appears in my Yunohost server’s applications>borgbackup>main settings page, look a bit flustered, then copy the newly-encountered public key, go into the “SSH Keys” tab/link on the BorgBase web-portal, click “Add Key”, and paste it in when prompted.
8, still in the BorgBase web-portal: click the “Repositories” link/tab, click “edit” on the repository I created for my Yunohost server, and under “Access”, select from the drop-down menu the SSH key I added in step (7).
9. Just because I like to keep a backup of all the SSH keys I use, and I presume I might need them to restore backups? (a). SSH into the Yunohost server, type $ sudo cat /root/.ssh/id_borg_ed25519
to get the private key, copy it from the terminal, make a file on my backup USB drive called id_borg_ed_2559
and using mousepad, paste the text into the file. (b) . type $ sudo cat /root/.ssh/id_borg_ed25519.pub
to get the public key, copy it from the terminal, make a file on my backup USB drive called id_borg_ed_2559.pub
and using mousepad, paste the text into the file.
The Yunohost Borg Backup application went into action automatically at midnight (it was set for daily updates), and appears to have initialised the repository on, and delivered a backup to, the BorgBase server.
I think all I need to do now is read and understand (± try out) how to restore a complete system using borg backup.
I’m beginning to accept that, in due course, I might need to make a borgmatic config file, and figure out how to make a prepare-for-backup.sh script that makes sure I have good quality backups (as I noob I understand these things in the meanest terms; I presume like taking a photograph, one just needs all the objects to hold still for a moment).