From server to server by SSH

Hello all,

Have you and idea to move websites with their databases from server 1 to server 2 by SSH in some commands ? I have Plesk on both lunix servers, thanks in advance for your help.

I just read your reply, thanks for your help, but I’m here to read, do you know that I didn’t have any idea about SSH 2 years ago, and now I’m playing with its commands, my tenacity push me to ask more and understand the secret of your magic, also it’s not easy to give access to your server easily, don’t you think ?

Do you know that I asked from 2 months to do it now ? I appreciate the help of ZArvixe, and I will follow his advices, and also EastCoast’s help, and I appreciate your help too.

Best regards.

Hello,

I got an error ( a capture screen attached ) when I used the following command ( as ZArvixe adviced me ) :

/usr/local/psa/bin/pleskbackup --domains-name domain.com -vvvvv --output-file=/root/domain.com

I replaced the RED text with the name of my website, so I don’t know why I got this error ??

Hello, thanks for your reply, but I’m not expert in Plesk, in fact there is no way to backup everything ( websites files and databases ) by SSH ??

I know backup one website, but I don’t know how can I do for many websites in one time…

someone has an idea ?

useful information, thanks!

Yes, you can generate backup for selected domains as:

[B]

/usr/local/psa/bin/pleskbackup --domains-name domain.com -vvvvv --output-file=/root/domain.com
[/B]

It will backup domain.com and the backup file will be /root/domain.com.

thank you a lot for your help, it’s working also if I want to select some websites only ? think on SERVER 1 I have websites A,B and C, and I want to move A and B only to SERVER 2, your methode working too ?

/usr/local/psa/admin/bin/autoinstaller is a utility that can be used to upgrade Plesk or install/uninstall Plesk components. You should login to SSH as root user so that you can run it. You should first check backup restore utilities are already installed or not. You can check it as:

ls -la /usr/local/psa/bin/pleskbackup /usr/local/psa/bin/pleskrestore

If you receive following response:
[B]

ls: /usr/local/psa/bin/pleskbackup: No such file or directory
ls: /usr/local/psa/bin/pleskrestore: No such file or directory
[/B]

it means that backup/restore utilities are NOT installed. In that case, you can run /usr/local/psa/admin/bin/autoinstaller to install them. Once backup/restore utilities are installed, you can generate sites backups.

Have you considered hiring some help? I admire your tenacity, but it seems you’re in over your head. Someone could probably have done this for you 10 times by now, for only a few dollars.

Plesk migration manager is probably your best bet unless you want to delve into rsync over ssh or a shell script that combines a bunch of tar/mysqlbackup/scp commands

Thanks ZArvixe,

when you say ( run “/usr/local/psa//admin/bin/autoinstalle”) what you mean exactly, where I have to run that, from SSH ? or from plesk itself ?

You can use Plesk backup/restore utilities to generate the websites backup and then transfer the backups to new server and restore them. The backup will copy everything including website data and the databases. Backup utilities are usually at following paths:

/usr/local/psa/bin/pleskbackup
/usr/local/psa/bin/pleskrestore

If you don’t find them check at /plesk_installation_directory/bin. You need to make sure that the package “psa-backup-manager” is installed because these utilities come with it. If its not installed, run “/usr/local/psa//admin/bin/autoinstaller” and install Server backup solutions.

^^^ There are plenty of shell scripts available freely online that deal with site transfer.