Transferring from 1 domain to another.

Transferring from 1 domain to another.

Posted by: Tiapan
Posted on: 2007-06-03 08:26:00

Hi all.....
I'm just wondering if its possible to transfer data from one domain to another without losing any databases or information.
The reason im asking is that ive made a little shopping website but hosting it with a sub-domain,the reason for this was to test stuff and see what it looked like etc before buying a new domain.
Anyway ive now bought new domain and im looking to transfer everything from http://www.clanwrcaa.com/zen-cart-v1.3.7-full-fileset-12302006/
to here www.eandmproducts.com
any help and suggestions would be great.
thanks in advance.


Re: Transferring from 1 domain to another.

Posted by: patricktan
Posted on: 2007-06-03 08:52:00

Are the two domains in the same account?

If so, you can use shell command to move the files. For example: cp /home/username/olddomain.com /home/username/newdomain.com

I don't really remember. But you may need to modify config file of your zen-cart.

Re: Transferring from 1 domain to another.

Posted by: sdayman
Posted on: 2007-06-03 08:53:00

Not too difficult:
• Your databases all get created on the same server, so the new domain can use your existing database. In the Panel for Manage MySQL, Add New Hostname, and you can use that to reference your existing database.
• You can copy an entire directory by Telnet/SSHing in and going to /home/YOU/eandmproducts.com/ and then 'cp -R /home/YOU/clanwrcaa.com/zen-cart-v1.3.7-full-fileset-12302006 .' This tells the system to Recursively copy your zen cart directory to "dot" which is the directory you're in now.

Oh yeah, I just saw the above post and remembered that you will have to update any configurations that point to your old domain.

-ScottEdited by sdayman on 06/03/07 08:54 AM (server time).

Re: Transferring from 1 domain to another.

Posted by: Tiapan
Posted on: 2007-06-03 09:40:00

In reply to:

Are the two domains in the same account?

If so, you can use shell command to move the files. For example: cp /home/username/olddomain.com /home/username/newdomain.com

I don't really remember. But you may need to modify config file of your zen-cart.


yes....both domains are hosted by dreamhost.

Re: Transferring from 1 domain to another.

Posted by: Lensman
Posted on: 2007-06-03 13:28:00

Did you do a one-click install of zen cart? Is it important to you to preserve that?

Re: Transferring from 1 domain to another.

Posted by: Tiapan
Posted on: 2007-06-03 13:42:00

yea...it was one click,its the latest version of zen cart also.

Re: Transferring from 1 domain to another.

Posted by: sdayman
Posted on: 2007-06-03 15:46:00

Good point. Moving it to the new directory is easy if you do a one-click to the new location, then overwrite it with your old zen cart.

And you can do an SQL dump of the old database and then empty the new database and repopulate it with your old data. Or maybe ZenCart has its own backup and restore mechanism.

-Scott

Re: Transferring from 1 domain to another.

Posted by: Tiapan
Posted on: 2007-06-03 15:51:00

would it be possible for someone to do a step by step for me please....im pretty new to server side and getting myself a little confused.

Edited by Tiapan on 06/03/07 03:52 PM (server time).

Tags: zen cartzen cartiveivethanks in advancethanks in advancedatabasesdatabasesv1v1