Connecting two nextcloud raspis

I have a Rasperry running Nextcloud 14. Thus I am saving all my digital documents on there I would like to extend my reliability further than disk-availability using RAID.

Is it possible (if yes how…) to set up a second raspberry with nextcloud at my friends house, having a physical backup not reliying on my internet connection.

Thank you and best regards

You want higher availability or a backup? Higher availability is not easy and to sync two servers on raspberries via home connections is perhaps not the best condition. If it is for backup, that could be a great idea, the NextcloudPi-project has images for Nextcloud on raspbis and has also backup scripts. It could be even better to let the raspbi in your friends house get the backups, so a possible attacker has no access to the backup storage.