Franki
06-08-2001, 07:18 PM
Hi.. I would like to know if there is any script or program for transfering sites in my Cobalt server. I want to host
some sites that are already up, so the only way to do it is to transfer them.
Chicken
06-09-2001, 01:21 AM
Well, you could tar up the other site and well, FTP it either directly to the server, or download it and back up again, or just FTP the site down and back up again. Is this what you mean?
-Edward-
06-09-2001, 04:22 AM
This is something i have never done.
How do you tar a site up? Then untar it?
kentaurus
06-09-2001, 07:21 AM
via telnet
cd to your sites directory
cd /home/site
tar the site (ej. site2)
tar -cvzf site2.tar.gz site2
after a long screen listing all your site files a file named site2.tar.gz will be created, this is a tar file containing all the data of your sites. You can ftp this file to your new host, then extract it (tar -xvzf filetoextract), be careful, though, since this will create you a directory named site2 and that site might exist in the new host.
If you are not needing the users directory you can simple tar only the "web" directory, and the replace the empy web directory of the new virtual site with all your files.
Franki
06-09-2001, 08:02 AM
The backup solution (tar command) is only possible when telnet access is available. If the owner of a site has only FTP access, how can the site be moved?
If you're transfering from 1 cobalt to another, you can try the Cobalt Migration Utility - http://www.cobalt.com/products/raq/migration.html