My server has around 2TB of data and some 20 services including Peertube, Synapse, Friendica or Nextcloud. We would like to move to a new server, but is there a more straight forward way to move? We are talking about databases that are over 100GB in size and hundred of thousands of files…
We also have Borg backups to borgbase.com for everything.
install YunoHost in the new server; skip postinstall (or not); install borg_backup; connect it to borgbase and start restoring your server from backups (domains, users, data, apps, multimedia,…)
What I noticed is that Yunohost will fail to restore backups larger than say 10GB especially if we are talking about databases. So say I restore my Synapse backup via borg. That one has a database of 200GB. I do not think I can simply restore this via the Yunohost admin panel. It will more than likely fail.
So yah, I could restore the backup archives from borgbase.com to the new server but for large backups I doubt it will work to restore.
EDIT: What I mean is that I can grab these large backup archives from borgbase.com to the new server, but to restore them seems like something that Yunohost won’t handle well when we are talking about large databases.
From what I remember, I did not use this way (create an archive), but borg mount ( borg mount — Borg - Deduplicating Archiver 1.2.6 documentation ), as it was a few years ago, I do not know if YunoHost’s api can still mount a backup not in an archive.
What I did is to mount a specific archive from borg to a folder in the backup folder, with a name as it should (I think the folder name is not important, and that the infos about the backup are all in a file inside).
Ok I made a post about it here Moving from Contabo to Webdock – TIO - maybe I should not post it directly here since it is quite long. In essence is is super easy thanks to YNH. The most complicated is to figure out with the SSH connections…those gave me a lot of headaches
In super short, but I’ll recommend the article:
Get a new VPS with Debian
Install Yunohost on it via SSH
Considering you have Borg backups, install the Borg app via YNH, and connect it to your Borgbase.
Via SSH grab the list of your Borgbase archives, then with another command select the one you want to download. First do so for your YNH config.
Restore your YNH data (configs, users, etc.)
Select your default domain and change the DNS for it.
Proceed to download a new archive and restore it via the YNH backup then change the DNS.
I will move a much bigger server that requires the restoration of hundreds of GB per app…so let’s leave this post open for now.
I still do not know how to restore a backup via the command line? Anyone can help? Is there a yunohost command for that?