Restoring DA from secondary disc

elbarto

Verified User
Joined
Oct 8, 2008
Messages
133
Hi folkes,

A couple of days ago we had a problem with the disc of one of our DA servers, it wouldn't boot, so we had to install the OS in a new disc and place the old one as a secondary disc (to retrieve the information).

We made a fresh install of DA in the new disc and restored all the backups we had. Most of them were from a couple of hours before the crash, but we had some problems with the reseller accounts that were not so up to date. As the old disc is still there on the same box, I can easily access the files to restore them, but it's complicated to restore the accounts.

Here are my questions...

1) One thing I successfully did to get the latests MySQL backup was to run the MySQL server on the old disc on a different port and run mysqldump for all databases (separately). My question is... would it be possible for me to run Directadmin on a different port (since 2222 is being used by the new DA in the new disc), so that I could access as admin to create all the backups I need?
I tried... did a chroot, changed the port number on directadmin.conf, but when I try to start the service I get an error saying "Unable to read the license file". I want to know if this is something I can fix and get it to work or if my efforts are useless.

2) If option 1 cannot be accomplished... is there any way (script) to create a full backup of a user from command line without having the directadmin service running? I've seen there's a way with dataskq, but I think that won't work if I can't get the old DA to work...

Thanks in advance.

Regards
 
Hello,

1) Hmm... with the chroot, you never know. I've never tried it, so cannot say if it would work or not. To change the port, edit the
/usr/local/directadmin/conf/directadmin.conf
to change the port to something other than 2222.
I cannot say if that would actually work or not.

2) We do have a guide to create backups from the command line. This may work within a chroot jail.

As a last resort, your last real option would be to manual copy of the data, which can get a bit messy, but might be your last hope.
The list of files here here:
http://www.directadmin.com/paths.html

John
 
Back
Top