Hi guys,
I would like to share my procedure to move users from server 1 to server 2. It might be handy for server admins that need to do this one day.
Regards, John
---
Procedure to move users from server 1 to server 2.
1) Make sure TTL (DNS) is low before starting. It would be wise to do this a day before the actual move.
2) Disable Multi Server Setup on server 2 if you configured it.
3) Temporary create an FTP user for ADMIN to make life easier for restoring. On server 2 do this:
4) Create a backup on server 1 (Admin Backup/Transfer) via FTP to server 2 in directory /admin_backups. (use the login details created in step 4)
5) Remove DNS entry for the user(s) you are going to restore on server 2.
6) Restore the backup on server 2
7) Enable Multi Server Setup on server 2 and update the DNS to the other servers:
8) Remove the admin user from /etc/proftpd.password
9) Restore TTL in DNS to default settings on your primary DNS server:
I would like to share my procedure to move users from server 1 to server 2. It might be handy for server admins that need to do this one day.
Regards, John
---
Procedure to move users from server 1 to server 2.
1) Make sure TTL (DNS) is low before starting. It would be wise to do this a day before the actual move.
Code:
cd /usr/local/directadmin/data/templates
perl -pi -e 's/14400/100/' named.db
echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue
2) Disable Multi Server Setup on server 2 if you configured it.
3) Temporary create an FTP user for ADMIN to make life easier for restoring. On server 2 do this:
Code:
wget http://www.castaglia.org/proftpd/contrib/ftpasswd
chmod +x ftpasswd
./ftpasswd --passwd --name=admin --uid=501 --gid=502 --home=/home/admin --shell=/bin/false
cat ftpd.passwd >> /etc/proftpd.passwd
4) Create a backup on server 1 (Admin Backup/Transfer) via FTP to server 2 in directory /admin_backups. (use the login details created in step 4)
5) Remove DNS entry for the user(s) you are going to restore on server 2.
6) Restore the backup on server 2
7) Enable Multi Server Setup on server 2 and update the DNS to the other servers:
Code:
echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue
8) Remove the admin user from /etc/proftpd.password
9) Restore TTL in DNS to default settings on your primary DNS server:
Code:
cd /usr/local/directadmin/data/templates
perl -pi -e 's/100/14400/' named.db
echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue
Last edited: