- 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: or if you want to migrate only specific account, then:
Code: Select all
export ALLOW_BACKUP_ANYTIME='yes' nice -n 19 ionice -c 3 v-backup-users
Code: Select all
export ALLOW_BACKUP_ANYTIME='yes' nice -n 19 ionice -c 3 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: (of course use proper username and filename that exists)
Code: Select all
nice -n 19 ionice -c 3 v-restore-user UsernameOfAccount UsernameOfAccount.2020-06-20_01-10-02.tar
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
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