View Full Version : HOW TO: Migrate from Cobalt to Direct Admin
motobrandt
06-15-2004, 06:35 AM
OK I'm not quite sure how to post this yet so maybe someone can give me some help. I've got scripts to run on the source server to migrate the sites from the cobalt to the DA server. This also requires a supporting import script over on the DS server.
Then a bunch of little scripts that go on the DA server to migrate users, passwords, and instructions on moving mysql etc.
I'm just not sure what to do with the files. Is there an anonymous FTP area? :D :cool:
It seems like too much to just copy and paste the text in a post but....
I could setup an anonymous ftp from my server.
Well I have to go to the Y and play basketball now. I'll check afterwards for suggestions.
cheers,
Brandt Milczewski
jlasman
06-15-2004, 09:26 AM
Originally posted by motobrandt
I'm just not sure what to do with the files. Is there an anonymous FTP area?
Only if you set one up.
It seems like too much to just copy and paste the text in a post but....
I could setup an anonymous ftp from my server.
We generally use scp to copy files from one server to another; see "man scp" for instructions.
Jeff
motobrandt
06-15-2004, 09:40 AM
ummm...:rolleyes:
yes I too use scp it works very well but. I'm talking about how to post these files so that others can use them.
I guess I'll just set up an anonymous ftp spot using Direct Admin. :D I've never done this before because I've always thought that anon ftp was a security risk. But I'll try it for this application.
jlasman
06-15-2004, 09:48 AM
I think I understand now... you want to set up a way for us to get and use your scripts.
Yes, an anonymous ftp site is fine, and when set up through DA should be safe and secure.
Anonymous ftp got a bad rap because before we became so security conscious we allowed people to upload and download as well; now we set up anonymous ftp so no one can look into our upload directory; we have an administrator move things from the upload directory to where we want to put them.
(Also, for a long time MS anonymous ftp couldn't be properly set up this way.)
You could also set up an httpd download page; as an example, see:
http://www.nobaloney.net/exim/
In addition to the files you see, my public_html/exim directory also has an .htaccess file with the following contents:
Options +Indexes
to allow the index to be listed for only this directory.
Jeff
motobrandt
06-15-2004, 10:08 AM
You got it!:D That's exactly what I want. I'll try to set up an http download page. That is really what I was after but I didn't know how to allow people to see the files. I'll add your suggestion to the .htaccess file and see if that gets it going.
THX
brandt
motobrandt
06-15-2004, 12:33 PM
OK Well I see that I'm going to have to do a bit more work to organize and put together some instructions for this. Right now things are pretty much hacked together without many comments and stuff. I'll work on this and get it back.
Here's what I've got right now.
http://bli.net/cobalt_DA_utils/
You must remove the .txt from the export.sh, it's just there so that you can view the code. And the index.php goes inside a domain on your destination server in a folder named /import. The export script uses that file at the path http://destinationserver.com/import (obviously destinationserver.com should be your DA server
The very first step is to manually create the sites in DA and an admin user. I recommend creating a username to admin DirectAdmin that doesn't already exist on the Cobalt domain. That way when the user script is run it will put them all into the virtual users format.
I'm going to work on the docs for this and to see if I can organize it a bit.
bye for now
brandt
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.