SSH to both servers old one (server A) and a new one (server B)
you need to Copy the files legacy server A :
Archive it first
tar -czvf magento.tar.gz app/code/
move to the public dir server A:
mv magento.tar.gz pub/
Go to new server B web dir. for example :
cd /var/www/html/
Download files to the new server B:
wget https://www.{domain}.com/magento.tar.gz
Untar files on a new serve B:
tar -xzvf magento.tar.gz -C magento
remove a file on the old server B:
rm pub/magento.tar.gz
In the next step, you will need to dump Magento DB. See my other posts.
Top comments (0)