Moving in

Move accounts from another server

What this does: freePanel signs in to your old server over SSH, copies each account's backup, and makes the account here with its websites, email, databases and DNS.

When you need it: when the accounts are on a server you can still sign in to, either another freePanel server or a server with another control panel.

Where: Backups and transfers > Move accounts here. Every box and button on that page is described in Move accounts here in the admin pages. This page walks you through a whole move.

What you need first

Step 1: allow moving

While moving is off, this server never connects to another one.

  1. Open Backups and transfers > Move accounts here.
  2. Under Allow moving accounts here, click Allow moving accounts.
  3. You are asked Allow this server to connect out to the servers you list below, to read their account archives? Click Yes, allow it.
  4. You see Moving accounts here is allowed now.
The Move accounts here page with the Allow moving accounts here card at the top

Step 2: add the old server

  1. Under Servers to move accounts from, click Add a server.
  2. In Name, type a name for your list, such as old-server.
  3. In Kind of server, choose Another freePanel server or Another panel. This can't be changed later.
  4. In Server name or address, type the old server's name or IP address, such as old.example.com.
  5. Leave Port at 22 unless the old server uses another SSH port.
  6. In User to sign in as, type the login, such as root.
  7. In Folder, type the backup folder, such as /backup. Leave it empty to use that user's home folder.
  8. Click Check host key. You see The server offers a ... key. Fingerprint: ... (for example an ED25519 key). Find the line of the same kind in the list from the old server, and compare the fingerprints.
  9. Only if they are the same, click Use this key. The button goes away, the key fills the Host key box with its Fingerprint under it, and you see The key was put in the box. Save the server to keep it.
  10. For Another panel only: tick Let freePanel pack the accounts on this server if you want freePanel to have the old panel make each account's backup just before it is copied. Leave it off if you make the backups yourself.
  11. For Another freePanel server only: tick Let freePanel change this server's DNS records for moved accounts if you want freePanel to point the moved domains here later. The login must be root.
  12. Under How to sign in, either type the Password, or paste a Private key (and its Passphrase of the key, if it has one). To have this server make a key instead, follow With a key made here below in place of steps 12 to 14.
  13. Click Test these settings. You see Signed in and read the folder. ... accounts found.
  14. Click Save server. You see old-server was saved.
The Add a server form for another freePanel server: name, kind, address, user, folder, the host key put in the box with its fingerprint, the DNS box, the password, and the Test these settings (1) and Save server (2) buttons

With a key made here

A key made here can't be tested before you save, because the old server doesn't know it yet. Do it in this order:

  1. Under How to sign in, tick Make a key here instead.
  2. Click Save server. You see old-server was saved. Add the key shown under its name to the other server's allowed keys.
  3. In the list of servers, under old-server, you see Add this key to the allowed keys of root on old.example.com: and a line that starts with ssh-. Copy the whole line.
  4. Sign in to the old server as that user. A user's allowed keys are in the file .ssh/authorized_keys in their home folder: one key per line, and anyone holding one of those keys may sign in as that user.
  5. Add the line at the end of that file. For example, type nano ~/.ssh/authorized_keys, paste the line on a new line at the end, then press Ctrl+O, Enter and Ctrl+X to save and leave. (If the .ssh folder doesn't exist yet, first type mkdir -p ~/.ssh && chmod 700 ~/.ssh.)
  6. Back in the panel, click Test next to old-server. You see old-server: signed in and read the folder. ... accounts found.

Step 3: move the accounts

  1. Under Move accounts, choose the server in Server.
  2. Click Show its accounts. You see ... accounts found. Choose the ones to move.
  3. Tick the accounts to bring. Up to 50 at a time. For a freePanel server, each account's newest backup is used. If you want an older backup of one account (say, from before a problem), click Another archive… next to it and pick one from the list.
  4. In Package, choose the package the accounts go on.
  5. Click Move ... accounts.
  6. You see The move started. Under The move, each account shows where it is: Waiting, Packing the account, Copying the archive, Checking the archive, Bringing the account in or Restoring the account, then Done.
The move card showing two accounts done and one copying its archive

The accounts come one after another. One that fails doesn't stop the rest. You can leave the page: the move goes on, and the page shows where it is when you come back. To stop, click Stop after this account.

When it ends, read each account's Details column: it says what was brought over and anything left out.

Step 4: point the domains here

Until you do this, visitors and mail still go to the old server. For most moves, change the domains' DNS where it is managed, as Moving in shows.

If the old server is another freePanel server and you ticked Let freePanel change this server's DNS records for moved accounts, freePanel can do it for you, one account at a time:

  1. On the same page, find Point a moved account's names here.
  2. In Server the account came from, choose the old server.
  3. In Account, type the moved account's username.
  4. Click Show its records. You see the records that point at the old server.
  5. Click Lower the time to live, then Lower the time to live again to confirm. The time to live is how long the rest of the internet remembers a record. Lowering it means the change you make next reaches everyone quickly.
  6. Wait at least as long as the old time to live shown in the Time to live column. It is in seconds (s): 3,600 s is one hour, 86,400 s is one day. That gives the rest of the internet time to forget the old value.
  7. Click Point the names here, then Point the names here again to confirm. You see ... names on ... now point at this server.
The Point a moved account's names here card listing an account's records and their time to live

If something is wrong, click Undo: the old server's records go back as they were.

If something goes wrong