View Full Version : How to copy a website ? Move to a new webhost!
Humax 06-29-2004, 02:45 PM Hello,
I'm trying to move a website built with exoops 1R3 from current to a new webhost, Files size about 10mb + mySQL 2mb
What's the easiest way to copy a folder from host1 to a folder on host2 with reserve all files/folders permissions ?
Remark: to copy mySQL (if small) I think phpMyAdmin will do the job without sqldump from SSH/telnet.
Thanks.
Yes you can export your databases from phpmyadmin, if they are only 2mb you shouldn't have a problem with that.
What control panel is your current and new host using? if it's cPanel there's a feature for your host to be able to copy the entire account from the old server to the new one.
buyourweb 06-29-2004, 03:05 PM He Humax.
If you can create a full back up? You or your host will be able to move the tar ball from one server to another using wget. Even easier if your old web host is using the control panel cpanel and your new web host is using cpanel. Your new host can move your full website in minutes.
Hope this helps
Humax 06-30-2004, 02:12 PM Hi,
mySQL database already copied to the new host which is offer cPanel same as the old one but this site was an add-on domain so it can't be transferred automatically by cPanel/WHM admin so I need to know what exactly SSH command I need to tar the whole site's folder then normal FTP it to the new host then untar it and move it around folders using CuteFTP6Pro but I'm not sure how to make zip or tar file with files/folders permissions since it's an e-xoops web site so it's full of cache folders and config.php files.
Please help with SSH commands to make archive file zip or tar but including all linux permissions to be ready when unpack the archive file in the new host.
Thanks a lot.
driada 07-02-2004, 05:32 AM whe i had such problem before..i just was ask do it my new host provider....he didi it free
Charlottezweb 07-02-2004, 08:12 AM If you already have the db setup (which is the hard part) why not just ftp down (and then upload) the files to the appropriate directories? You said it's only 10mb...
4ulyrics 07-02-2004, 09:49 AM well also you can copy the intire public_html file
zerosix 07-03-2004, 12:13 AM You could try asking your new hosting provider. If that does not work (it should, quite a few hosts will do it with no problem), then if you are using cPanel, download home directory backups and all of the MySQL database backups, from the old host and then restore those backups on the new host.
Good luck :)
Humax 07-03-2004, 11:16 AM Hello,
I can't do it by manual FTP even it's jus 10mb but it's e-xoops portal which is full of files and folders permissions and can't work if one file or cache folder permission changed! that's the problem and I guess it's can be done by SSH commands or a readymade script do pack&trans for the whole public_html folder or any subfolder on it then transfer the big file in one set from old to new server then unpack it there with all files and folders permissions, I'm really surprised there is no such a software to do this since not all knows SSH/telnet commands.
Thanks a lot.
zerosix 07-03-2004, 11:19 AM If you do in fact have a cPanel account, that's how their backups are performed, the permissions are saved because they archive the entire account for you.
Do you have cPanel or another control panel?
Charlottezweb 07-03-2004, 01:04 PM You can change file permissions using almost any ftp program or even using cpanel's file manager. You don't need ssh to do that.
Regards,
Jason
zerosix 07-03-2004, 05:58 PM Originally posted by Charlottezweb
You can change file permissions using almost any ftp program or even using cpanel's file manager. You don't need ssh to do that.
Regards,
Jason Right, but when you are copying an entire site, there may be alot of things that have permissions set and it would be a pain to change those separately.
Humax 07-05-2004, 12:03 PM Hello,
The problem with cPanel is you can't find the backup file on site's diskspace but it's just sent to your browser, So what to do to copy the file by ssh to the new host and save 1001 million hours or downloading and uploading and changing permissions for tons of files and folders!! I remember the old AlabanzaCP that was make backup for any folder from file manager. Infact right now I think cPanel is not that much cute but it's still support multilanguages with rvskin.
Both old and new host include cPanel but I don't want to ask any body to do any thing, Why we can't do it ourself with all that scripts and cPanels and hosting features. Is it really that much hard to copy a folder (50mb in 4000 files) through the fast servers links ?
Thank you all for help.
zerosix 07-05-2004, 12:14 PM Hi Humax,
I am not quite sure what problem you encountered with cPanel, but from what I can tell, you can't find the backup file on your disc space in your account. This is because it is not stored in anyone's account, backups are usually stored on a server's /backups dir.
The way you would get access to your backup is to go to your cPanel account (http://yourdomain.com/cpanel or http://yourdomain.com:2082/) and then click on the 'Backup' icon. You will be brought to the backups page. Then, click on 'Download a home directory Backup' (which will download a backup of your home directory which will keep the permissions and it also includes the email accounts that you created). If you are using MySQL, then right under the home directory backup, there is 'Download a MySQL Database Backup', click on the database name to download the backup of that database.
I hope this helped :)
the--dud 07-05-2004, 04:35 PM make a tarball and transfer by ftp to ftp. No doubt...
Humax 07-06-2004, 11:42 AM Hello,
Here is the steps to be available to whois ever need this information below.
First login using SSH (or telnet) make a tar file as below...:
tar -cfv file.tar
... then gzip it:
gzip file.tar
then you'll got a file.tar.gz which is very compressed and easy to be transferred to another host by FTP as below:
ftp newhost (or IP number)
put file.tar.gz (copying .... if it take more than seconds this mean your newhost "may be" are using 10Mbps not 100Mbps)
Now login to your new host using cPanel then de-compress the file.tar.gz using File Manager in cPanel, It's better then to use a good FTP program such as CuteFTP6Pro to move unpacked files to the proper new folder which is usually /public_html
Thank you all for help.
|