Comparing two severs accounts

Ahmad Alwareh

New member
Joined
Mar 13, 2020
Messages
1
I have two servers with the same hardware run DirectAdmin 1.60.4, what I am doing is moving the Resellers and their accounts from server 2 to server 1, after finishing the process is there any way to compare the account to see if I missed any account while I am moving?

p.s: the process of moving is done by using "Admin Backup/Transfer" by taking backup from server 2 and restore it in server 1.
 
Here’s one way:
On server 1:
ls /usr/local/directadmin/data/users/ > /tmp/server1-users.txt

On server 2:
ls /usr/local/directadmin/data/users/ > /tmp/server2-users.txt scp server1:/tmp/server1-users.txt /tmp/ diff /tmp/server1-users.txt /tmp/server2-users.txt

(Or vimdiff if you prefer.)
 
Back
Top