français (english below)
Salut à tou.te.s !
Déjà merci beaucoup aux contribut.eurs.rices pour ce super projet ! Ca fait bientôt 4 ans qu’on fait tourner deux serveurs Yunohost pour un usage quotidien par une dizaine de personnes. C’est impressionant de voir toutes les avancées au niveau communautaire, gestion des applications, de l’expérience utilisateur etc.
Voilà un nouveau topic pour chercher quelques conseils/idées pour la migration d’une instance YNH d’un VPS à un autre, merci d’avance.
Contexte
On a besoin de migrer une instance YNH d’un VPS (serveur-actuel) à un autre (serveur-cible). En terme de doc voilà ce que j’ai trouvé :
- YNH doc: 'Sauvegarder son serveur et ses apps’
- discussions sur le forum :
A priori la manière classique de faire est de faire un backup complet avec yunohost backup create
puis de scp
l’archive vers le serveur-cible afin de la restaurer sur une instance toute fraîche de YNH (à la place de faire la post-install
).
serveur-actuel
- last stable YunoHost (3.6.5.2) - Debian 9.11, hébergé sur Gandi VPS
- nom de domaine et enregistrements DSN gérés chez l’hébergeur
- accès via SSH ou WebAdmin
- uniquement des apps officielles et à jour (Nextcloud, Wordpress, Jirafeau, Zerobin, Wallabag, Synapse)
serveur-cible
- Debian 9.11 toute neuve, hébergée sur un autre VPS Gandi
Description de la problématique
J’utilise déjà 80% de l’espace disque disponible sur le serveur-actuel et le serveur-cible a la même taille que le serveur-actuel. Donc j’imagine que je n’aurai pas assez de place pour qu’une archive complète cohabite avec le système Yunohost. A priori la commande yunohost backup create
créera l’archive sous /home/yunohost.backup/archive
et on ne peut rien y faire.
Quelques questionnements :
- est-il possible de choisir où l’archive doit être sauvée ? Idéallement j’aimerai lancer la commande
yunohost backup create
via ssh (ssh user@host yunohost backup create)
et sauver l’archive directement sur mon PC. - sinon est-il possible d’utiliser
rsync
pour synchroniser la racine/
de mon serveur-actuel sur le serveur-cible. J’imagine qu’il y aura des soucis avec la config serveur (nom du disque, adresse IP ou quoi que ce soit d’autre…), pensez-vous que ce soit gérable ? - d’autres idées ?
/
English
Hello to everyone !
First I’d like to thanks all the contributors for the amazing project ! It has been almost 4 years that we are running two yunohost servers for a daily usage by 10 active users. It’s impressive to see the constant improvements about community organization, app management, user experience and so on.
Here is a new topic to ask for some advices/ideas about migration a YNH instance from a VPS to another. Thanks in advance.
Context
We need to migrate one YNH instance from one VPS (current-server) to another (target-server). I’ve checked some documentation/discussions about it:
- YNH doc: 'Backing up your server and apps’
- some discussions on this forum:
It seems that the common way would be to make a full backup with yunohost backup create
and then scp
it to my target-server to restore it on a freshly installed YNH server (instead of running a post-install
).
current-server
- last stable YunoHost (3.6.5.2) on up-to-date Debian 9.11, hosted on a Gandi VPS
- domain name and DNS record managed through my host system
- access through SSH or WebAdmin
- only official and up-to-date apps (Nextcloud, Wordpress, Jirafeau, Zerobin, Wallabag, Synapse)
target-server
- freshly install Debian 9.11, hosted on another Gandi VPS
Description of my issue
My problem is that I already use 80% of my disk-space on the current-server and the target-server is the same size as the current-server. So I guess there is not enough place to make a full-backup co-exists with the YNH system. It seems that’s the command yunohost backup create
will create the archive under /home/yunohost.backup/archive
and that I can’t change that.
I wonder if:
- is there any way to choose where the archive must be saved ? Ideally I would like to run the
yunohost backup create
command over ssh (ssh user@host yunohost backup create)
and save the archive directly on my local computer. - if not, is it possible to use
rsync
commands to synchronize the root/
of my current-server to the target-server ? I guess there would be some troubles with some server config (disk name, IP adress or anything else…), is it manageable? - any other idea ?