Skip to content

How to migrate to another VPS #369

Answered by rahnamaj22
akondratiuk1 asked this question in Q&A
Discussion options

You must be logged in to vote

I've recently migrated to another server with the following services on Dokploy:

  • Python application
  • .NET backend
  • Directus
  • Appsmith
  • Several Postgres and Mongo databases

Unfortunately, my VPS provider lacked backup capabilities, so I had to migrate everything manually. Here’s what I did:

  • Got a new VPS
  • Transferred the entire filesystem using rsync:
    rsync -aAXv --delete \ --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found","/swapfile"} \ -e "ssh -i /path/to/private_key" user@source_vps_ip:/ /
  • After the migration, I updated the server IP in the Dokploy database:
    UPDATE admin SET "serverIp" = 'new_server_ip' WHERE "serverIp" = 'old_server_ip';

This a…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@bloor
Comment options

@rahnamaj22
Comment options

Answer selected by akondratiuk1
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants