To be honest, actually I do not think this is an issue with MIAB, but with my sshd setup. But I am hoping someone more experienced than me could help me here?
I am trying to rsync from the MIAB VPS to my local physical back-up server which has a DynDNS service running.
I have copied over the public key from the admin page to the user directory of the target. Running ssh -vvv I get some info, but do not know what to make of it: It seems it does not even look in ~/.ssh/authorized_keys as suggested by the admin page?
[...]
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/id_rsa
debug3: no such identity: /root/.ssh/id_rsa: No such file or directory
debug1: Trying private key: /root/.ssh/id_ecdsa
debug3: no such identity: /root/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /root/.ssh/id_ecdsa_sk
debug3: no such identity: /root/.ssh/id_ecdsa_sk: No such file or directory
debug1: Trying private key: /root/.ssh/id_ed25519
debug3: no such identity: /root/.ssh/id_ed25519: No such file or directory
debug1: Trying private key: /root/.ssh/id_ed25519_sk
debug3: no such identity: /root/.ssh/id_ed25519_sk: No such file or directory
debug1: Trying private key: /root/.ssh/id_xmss
debug3: no such identity: /root/.ssh/id_xmss: No such file or directory
debug1: Trying private key: /root/.ssh/id_dsa
debug3: no such identity: /root/.ssh/id_dsa: No such file or directory
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
I think adding the --delete option to the command, is probably a good idea, to keep in sync with file removal on the MIAB. But I’ll sleep over it first
The -c option (checksum) can be dropped safely. The overhead of creating a checksum on every file is quite high, especially on low-powered VPS servers that are typically used for personal MIAB installations. Without -c, rsync uses the filesystem attributes (timestamp, file size) to instantaneously detect a change; no CPU overhead.
Personally, I disabled MIAB backups but use rsync to fetch /home/user-data to a separate, dedicated backup server. Daily backups are archived in zfs snapshots on that server for 30 days.
If you have a “more advanced” router you can also opt to only open port 22 for the IP of your VPS. This way you can safely use the standard miab backup functionality. I have this setup to push backups to my synology nas via duckdns.