I currently have Nextcloud installed on a VM on-prem. Using a simple split-DNS, users can connect to the server with an internal IP when on the LAN and with the public IP (over the Internet) when outside.
However, users connecting through the Internet have less-optimal experience because of reduced speed a latency. I’m thus planning to create a replica of NC on the cloud (IaaS). I understand that NC supports replicas: the application itself is stateless, MySQL can be replicated and there’s no cache in use (load isn’t that big). The problem is with replication of storage.
What is the best way to replicate the storage from my on-prem server to the cloud server? There will be only 2 servers (1 on-prem, 1 on the cloud), and I don’t think there’s budget for a third server (many solutions require a third one for quorum). There’s a site-to-site VPN already in place between the local network and the VNet in the cloud.