Goal:
The goal is to setup a automated btrfs snapshot-sync in the local network from the nextcloudPi to a second raspberry pi with a external drive formatted to btrfs.
Steps:
setting up the raspberry pi with the raspbian image and enabling ssh
(succsessfully)
customize settings in the nextcloud Web-panel:
(here is where I get stuck)
There are following preperations needed (says the info text above the options):
Sync BTRFS snapshots to USBdrive or remote machine
1.Use format user@ip:/path/to/snapshots for remote sync
2.‘user’ needs permissions for the ‘btrfs’ command at ‘ip’
3.‘user’ needs SSH autologin from the NCP ‘root’ user at ‘ip’
Im only a linux beginner… How can I do this changes on my backup-raspberry pi so it will work?
at first, I also struggled setting up ssh autologin. I am a linux beginner, too. Our goals seems similar. I want to rsync my datadir to a remote raspi and beeing able to restore it afterwards (which I still struggle on).
For me, these two pages helped me set the ssh problem up properly:
My tip is to use btrbk. It’s a btrfs backup tool that is used to send snapshots over ssh to other computers. It can also automatically keep x amount of local and remote snapshots with retention policies. It has a good irc channel, #btrfs on freenode.