Not sure to understand 100% what you are looking for, but if you are looking for a remote backup solution, we currently have this tutorial :
which nowadays should be simplified using borg_ynh and borgserver_ynh apps (those shall be progressively implemented in the core). Though be aware that what the tutorial describes requires 2 yunohost servers. But you can also adapt it on a “non-yunohost” server if you are able to deploy and configure borg and ssh appropriately.