How to Migrate Nod by n8n to xCloud (Hostinger VPS, DigitalOcean or Any Server)
Updated December 5, 2026 · 20 min read
You can migrate Nod by n8n to xCloud from any server you run it on, with Nod’s own backup command. Deploy a fresh Nod on xCloud, back up your old Nod with backup.sh, copy the backup to the xCloud server and restore it there. Your conversations, files, schedules and saved logins come over. Nod keeps the address, HTTPS and sign-in token xCloud gave it.
It takes about 20 minutes plus the copy time. Your old server isn’t changed, so you can start it again if something goes wrong.
This works for Nod’s self-host version on a Linux server with Docker: a VPS at Hostinger, DigitalOcean, Hetzner or AWS, or a server at home. Moving an AI agent instead? See How to Migrate OpenClaw to xCloud or How to Migrate Hermes Agent to xCloud.
Nod can’t move itself. OpenClaw and Hermes can run the migration for you, but Nod works inside a locked workspace that can’t reach its own server. You run the commands below yourself, in a terminal.
What moves and what doesn’t
Nod’s backup command saves everything Nod keeps in its database and data folders, plus its .env file. On xCloud you restore the data and take only one key from that .env: the Vault key, which unlocks your saved logins.
| Moves to xCloud | Stays as xCloud set it up |
|---|---|
| Conversations, settings and schedules | Nod’s program and release |
| Saved logins in the Vault, with the Vault key that unlocks them | The Nod address, your domain and HTTPS |
| Files in Nod’s workspace and installed workspace tools | The sign-in token on the Status page |
| Browser profiles and saved browser state | Memory limits and the other .env settings |
| Channels and apps you connected inside Nod | The nod service that xCloud starts and stops |
The desktop app’s local assistant can’t be moved: Nod’s backup only works on a self-hosted server, and Nod’s own guide says connecting the app to a server doesn’t move its data. If you only used the desktop app, deploy Nod on xCloud and connect the app to it.
What you need
- Your current Nod server running Linux, and a terminal on it with
sudoor root (SSH, or your host’s web terminal). The commands use the/rootfolder, so they are written for Linux. - Nod installed from its source folder (
nod/deployment/self-host) with its bundled database. Nod’s backup command refuses a customDATABASE_URL. - The old server can reach your xCloud server on SSH port 22
- An xCloud account
- About twice the size of your Nod data free on both servers
Step 1: Deploy a fresh Nod on xCloud
Create a Nod server by following How to Deploy Nod by n8n with xCloud. You don’t need to finish Nod’s own setup in the browser: the migration replaces it.
When the server is ready, open Updates and select Check for Updates. If an update is available, select Update Now. xCloud must run the same Nod release as your old server, or a newer one. Nod updates its database when it starts, and an older release can’t read a newer database.
To see which release your old server runs, open a terminal in its Nod folder (nod/deployment/self-host) and run:
git -C ../.. describe --tags
It prints a release such as nod-v0.10.8. Compare it with Installed Version on the xCloud Status page. If your old server runs something newer than the latest release xCloud offers, wait for the next release before you migrate.
Step 2: Back up the old Nod and stop it
On the old server, go to the Nod folder and run Nod’s backup command. Use a new folder for the backup:
cd ~/nod/deployment/self-host
sudo sh backup.sh /root/nod-migration
Nod stops for a minute while it copies its data, then starts again. The command ends with Backup saved: /root/nod-migration. If backup.sh is missing, your Nod is too old for this guide: update it first.
Now stop the old Nod, so nothing changes after the backup and two servers never answer the same Telegram or WhatsApp bot:
sudo docker compose stop
This keeps all its data. Use sudo docker compose --profile https stop if you set Nod up with its HTTPS option.
The backup holds secrets. It contains your Vault key and database, so keep it private and delete it when you are done.
Step 3: Make an SSH key on the old server
The old server needs a key to log in to the xCloud server. On the old server, run:
sudo ssh-keygen -t ed25519 -N '' -C nod-migration -f /root/.ssh/nod_migration
sudo cat /root/.ssh/nod_migration.pub
Copy the line it prints. It starts with ssh-ed25519. Never share the private key (the file without .pub).
Step 4: Give the key root access to the xCloud server
- Open the new Nod server in xCloud and go to Settings → Sudo Users.
- Click Add Sudo User.
- Enter
rootin Sudo User Name. A root user needs no password. - Click Add SSH Key, give it a name such as
nod-migration, paste the public key from Step 3 under Public Key, and click Add SSH Key. The new key is ticked. - Optional: tick Temporary, so xCloud removes the key by itself within 12 hours. If
rootis already listed in Sudo Users, leave Temporary unticked and remove the key yourself in Step 8. - Click Save.

xCloud adds the key for the root user in a few seconds. You’ll find the server’s IP address on the server’s Overview in xCloud.
Step 5: Copy the backup to xCloud
On the old server, replace SERVER_IP with your xCloud server’s IP address and run:
sudo scp -i /root/.ssh/nod_migration -r /root/nod-migration root@SERVER_IP:/root/
Type yes if it asks whether to trust the server. When the copy ends, the backup is in /root/nod-migration on the xCloud server.
Step 6: Restore the backup on xCloud
Log in to the xCloud server as root with the same key:
sudo ssh -i /root/.ssh/nod_migration root@SERVER_IP
Then run these commands on the xCloud server. They keep a safety copy of the fresh install first, stop Nod, put your old Vault key in xCloud’s .env, and restore the database and the four data folders:
cd /opt/nod/deployment/self-host
MIG=/root/nod-migration
# 1. Safety copy of the fresh xCloud install
sh backup.sh /root/nod-before-migration
cp .env /root/nod-env-before-migration
# 2. Stop Nod
systemctl stop nod.service
# 3. Use the old Vault key, so your saved logins still open
sed -i '/^NOD_VAULT_KEY=/d' .env
grep '^NOD_VAULT_KEY=' "$MIG/.env" >> .env
# 4. Restore the database
docker compose up -d --wait postgres
docker compose exec -T postgres psql -U nod -d postgres -v ON_ERROR_STOP=1 \
-c 'DROP DATABASE nod WITH (FORCE)' -c 'CREATE DATABASE nod OWNER nod'
docker compose exec -T postgres pg_restore --exit-on-error --no-owner --no-privileges \
-U nod -d nod < "$MIG/postgres.dump"
# 5. Restore the data folders
HELPER=$(sed -n 's/^helper_image=//p' backup.sh)
for v in server-data workspace-data workspace-tools browser-data; do
docker run --rm --network none -v "nod_$v:/data" -v "$MIG:/backup:ro" --entrypoint sh "$HELPER" \
-c "find /data -mindepth 1 -delete && tar -C /data --same-owner -xzf /backup/$v.tar.gz"
done
# 6. Start Nod
docker compose stop postgres
systemctl start nod.service
The last command takes a minute or two while Nod starts. It updates the restored database to the release xCloud runs. Check that Nod is up:
docker compose ps
Every service shows Up in the STATUS column, and server, browser, postgres and workspace-network also show (healthy). To see the server log, run:
docker compose logs --tail 20 server
The log ends with Nod is ready.
Step 7: Sign in and check your data
- In xCloud, open the server and go to Status.
- Copy the Sign-in token from the Sign in to Nod card and select Open Nod.
- Paste the token when Nod asks for it.
Your conversations and files are there. Check these too:
- Vault: open a saved login to check that it opens. If saved logins don’t open, the Vault key wasn’t copied: repeat step 3 of Step 6 and restart Nod with
systemctl restart nod.service. - Channels: Telegram and WhatsApp channels you connected in Nod come over. If one shows as disconnected, connect it again from Channels. If you set a channel up with settings in the old
.envfile instead, connect it from Channels now. See how to talk to Nod from Telegram or WhatsApp on xCloud. - Apps: connected apps come over. If one asks you to sign in again, connect it again from Apps.
- Schedules: review them before you leave Nod running.
If you use the Nod desktop app with your old server, choose Replay onboarding…, then Change server, and enter your xCloud Nod address and the new sign-in token.
Step 8: Clean up
- In xCloud, go to Settings → Sudo Users. If the migration key is the only key on
root, delete therootentry: forroot, xCloud removes only its SSH keys, never the user. Ifroothas other keys you use, edit it and untick onlynod-migration. A Temporary key is removed by itself within 12 hours. - On the xCloud server, delete the copied backup:
rm -rf /root/nod-migration. - On the old server, delete
/root/nod-migrationand the/root/.ssh/nod_migrationkey files. - Keep the old server stopped for a few days. Once you are sure everything is on xCloud, cancel it.
- When you no longer need the safety copy, delete
/root/nod-before-migrationand/root/nod-env-before-migrationon the xCloud server.

To keep backups on xCloud from now on, use Nod Backups on the server. See Back up and restore Nod.
Troubleshooting
backup.sh says “Start the bundled PostgreSQL service before backing up”
The old Nod is stopped. Start it with sudo docker compose up -d --wait in its folder, then run the backup again.
The copy says “Permission denied (publickey)”
Check that the key in Sudo Users is the full .pub line from Step 3, that the user is root, and that you used the server’s IP address. If you ticked Temporary, the key is removed after 12 hours: add it again. Some hosts block outgoing SSH: ask your host to allow port 22 out.
Nod doesn’t start after the restore
Read the log with docker compose logs --tail 100 server on the xCloud server, or open Logs → Nod Log in xCloud. A message about the database version means your old server ran a newer Nod than xCloud: update Nod on xCloud (Step 1) and run Step 6 again.
You want to undo the migration
Your old server wasn’t changed: start it again with sudo docker compose up -d --wait in its Nod folder. On the xCloud server, the safety copy from Step 6 (/root/nod-before-migration and /root/nod-env-before-migration) keeps the fresh install, so our support team can help you put it back. Don’t delete it until you are sure you’re staying.
Frequently asked questions
Can I migrate Nod from any host?
Yes, from any server where you installed Nod’s self-host version with Docker: a Hostinger VPS, DigitalOcean, Hetzner, AWS or a Linux server at home. You need a terminal on that server and root SSH access to your new xCloud server. The desktop app’s local assistant can’t be moved this way, because Nod’s backup command only works on a self-hosted server.
What does the migration move?
Everything Nod keeps: conversations, settings, schedules, saved logins in the Vault, files in Nod’s workspace, installed workspace tools and browser profiles. Nod itself, its address, HTTPS and the sign-in token stay as xCloud set them up.
Do I need a new sign-in token?
Yes. After the migration you sign in with the token xCloud shows under Status → Sign in to Nod. The old server’s token doesn’t work on xCloud. If the Nod desktop app used your old server, connect it to the new address with the new token.
Do my Telegram and WhatsApp channels come over?
Channels you connected in Nod’s Channels page come over with the data. Stop the old Nod right after the backup, so two servers never answer the same bot. If a channel shows as disconnected on xCloud, connect it again from Channels.
If you run into any issues during the migration, feel free to reach out to our support team.