Page 1 of 1

How to move accounts from one (my)Vesta server to another myVesta server

Posted: Sat Jul 25, 2020 10:15 pm
by myVesta
This tutorial is general manual for both situations:
  • moving sites from old Vesta server to new myVesta server
  • moving sites from one myVesta server to another myVesta server

Here we go:
  • On your old (my)Vesta server, in SSH, as root, run:

    Code: Select all

    v-backup-users
    or if you want to migrate only specific account, then:

    Code: Select all

    v-backup-user UsernameOfAccount
  • Copy files from /backup to some remote server, or to your computer
  • Install myVesta on new server if it's not already installed
  • Create /backup folder on new myVesta server (if it's not already created)
  • Now copy your generated backup files from remote server (or from your computer) to /backup folder on new myVesta server
  • On new myVesta server, in SSH, as root, run:

    Code: Select all

    v-restore-user UsernameOfAccount UsernameOfAccount.2020-06-20_01-10-02.tar
    (of course use proper username and filename that exists)

Normally, after restoring backups, your imported domains will have DNS that contains NS1, NS2 and IP of the original (old) server.
If it differs from the server you importing backup, you can do in SSH, as root:

Code: Select all

v-normalize-restored-user YOUR_USERNAME
and that command will automatically put NS1, NS2 and IP of your current server.


Advice: don't kill old server before you bring everything on new.
Or, if it's cloud, please make snapshot of old server before you kill it.

We saw the situations where people got corruptred backups because there was no free space on old server to make full backup.
They didn't noticed that (they didn't check /usr/local/vesta/log/backup.log) and killed server with thinking that everything is in backup files.
They had supprise when they tried to restore them on new server :(

Re: How to move accounts from one myVesta server to another myVesta server

Posted: Tue Jun 22, 2021 2:58 pm
by colifato
Thank you for accepting the forum registration.
I have a query .. in the case of migrating from HestiaCP to myVesta, the steps to follow would be the same as from Vesta to myVesta?
From already thank you very much.

Re: How to move accounts from one myVesta server to another myVesta server

Posted: Tue Jun 22, 2021 3:03 pm
by myVesta
colifato wrote:
Tue Jun 22, 2021 2:58 pm
Thank you for accepting the forum registration.
I have a query .. in the case of migrating from HestiaCP to myVesta, the steps to follow would be the same as from Vesta to myVesta?
From already thank you very much.
I'm afraid Hestia modified backup format.
You can try to import, anyway, maybe old stuff is on the same place in backups...give it a try :|