HOW TO: Migrate from Cobalt to Direct Admin

motobrandt

Verified User
Joined
Jan 8, 2004
Messages
217
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
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
motobrandt said:
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

Verified User
Joined
Jan 8, 2004
Messages
217
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.
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
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

Verified User
Joined
Jan 8, 2004
Messages
217
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

Verified User
Joined
Jan 8, 2004
Messages
217
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
 
Top