Problems restoring a BK

eduardo.mejia

Verified User
Joined
Mar 30, 2012
Messages
15
Hello Forum

I Just installed a new Server with DA DirectAdmin 1.40.3
I've migrated the reseller user from my current_Old_DA_Box to the new one.

The reseller information was migrated without problems, but when I tried to migrate a user (using FTP) from the old Server to the new I get a message with this speech.

Subject: An error occurred during the restore. Today at 09:32
d20492278506 is not a valid username
The standard format or name for the customers is like that starting with 'd' and follows a number.
How can I Fix this problem?

Best Regadrs.
 

scsi

Verified User
Joined
Aug 19, 2008
Messages
4,695
Change the username on the previous server before doing the backup.

There is a script in /usr/local/directadmin/scripts to do that.

./change_username.sh old new
 

eduardo.mejia

Verified User
Joined
Mar 30, 2012
Messages
15
Hello scsi, :)
but when I migreate from an older older server to the current I don't change anything with the names, the names were backup'ed normally and transfered n' restored as well.

The new version of DA require this kind of operation, I can 't change the user name because is a production server.:p

What other suggestion do you have?
 

eduardo.mejia

Verified User
Joined
Mar 30, 2012
Messages
15
Scsi,
When I tried to BK_Over_FTP the reseller I can't do this... to skip this step I've ftp_put on a remote server.

Now, I log into the console as 'reseller' as always I do, the BK is created fine and transfered wo problems.
But at the time to restore it appears this message.

Step 1
In the Old Server I've generated the BK and transfer to an FTP server (non_DA) as Reseller

Step 2
Connect to the FTP_Server from the new server ftp_get the file and try

Step 3
As reseller I try to restore locally, And still with the same problem

Subject: An error occurred during the restore. Today at 12:54
d20492278506 is not a valid username
 

eduardo.mejia

Verified User
Joined
Mar 30, 2012
Messages
15
Scsi, I think I found the problem.... may be is not an error... but may be a tune a configuration.
The file name I'm trying to migrate have 12 characters in their name, the standard support only 10.

Where can I change this to test the number of characters the user name can handle?
 

scsi

Verified User
Joined
Aug 19, 2008
Messages
4,695
Edit /usr/local/directadmin/conf/directadmin.conf

Look for this line:

max_username_length=10

If it is not already in there you can just add:

max_username_length=12

Then run:

/sbin/service directadmin restart
 
Top