Cannot restore backups after machine crash!

justahost

Verified User
Joined
Mar 19, 2006
Messages
122
Bit of a strange one this.
I am trying to move DA accounts from one server to another - copied the tar.gz files across and started to restore the accounts.

There was then a problem at the DC which meant the server died (power problem).

No worries I thought, I will start again - however it appears that I cannot restore most of the accounts that were being restored before - any new ones I restore work fine.

My question is am I not being allowed to restore the accounts because DA thinks they have already been done (error I am getting is: You don't have permission to restore user <account name>).

If this is the case, where should I be looking to get rid of any trace of the failed restore?

I have deleted the .db link from named but I still get the probs and I have about 12 of them to sort out!

Failing that - any way of manually restoring the accounts (they are all under the admin user)

Cheers
ryan
 
Sorted it.

If you ever find yourself in this situation (which I doubt but hey, may as well put it here for the record!):

1. Backup /etc/passwd and then open it to edit. Delete any occurance of the username you are trying to restore

2. Backup /etc/group and then open it to edit. Delete any occurance of the username you are trying to restore

3. Remove any reference to the username in /etc/httpd/conf/extras/directadmin-vhosts.conf

4. Remove /var/spool/mail/<username> & /var/spool/cron/<username>

5. Remove user darectory from /usr/local/directadmin/data/users

6. Restore should now work!

This works for me - no guarantees for anyone else, but when all else fails may be worth a go!

Ah, thats better!

Ry
 
Last edited:
Back
Top