cancel
Showing results for 
Search instead for 
Did you mean: 

how to restore my site on an another hosting

how to restore my site on an another hosting

Hello!
My previous hosting was hacked and I lost control on it, that's why i decided to use another service. Before my hosting was hacked, I have made the backup of my website, DB and Home Directory separately. I tried to use backup service (cpanel) and restore my site DB and Home directory files were restored, but nothing changes (default home of magento). May be I need to delete all files before I will try to restore my website once again? Or may be delete all files and then unpacked on the server my homepage backup using ssh and then import my backup database?

4 REPLIES

Re: how to restore my site on an another hosting

If you have a backup, here's what you can do:-

  1. Wipe all the files clean and start over.
  2. Upload or import all files from your backup.
  3. Import your database backup into a fresh database (along with a new database user).
  4. Update your app/etc/local.xml file to reflect the new database, user and password. 
  5. Clear all files under var/caches and var/sessions
James Lee | Moderator • Magento Master
See My Recommended Magento Hosting & Security Tips

Re: how to restore my site on an another hosting

In this case, you need to do it manually.

 

- Download the backup version

- Unzip -> you will see the folder structure and database

- Upload to the new hosting with the same structure

- Configure database

- Clear cache folder

Re: how to restore my site on an another hosting

Follow these steps to move your site to another hosting:

1. Upload all code files to new hosting

2. Create new database on your new hosting

3. Import database from your .sql file to this new database

4. Go to /app/etc/local.xml and change database info according to the new database.

5. Point your domain to new hosting 

Check if your site works

Re: how to restore my site on an another hosting

Here is a process to do it manually.

 

Download the backup data first on your computer.

Unzip the backup data folder and you will see the folder structure and database

Upload your all data to new hosting space.

Go ahead and configure the database.

Do not forget to clear the cache and trying running on both platform local and server

 

Very good luck!