Skip to content

Commit

Permalink
docs(migrate-to-new-server.md): add migration instructions for plane.…
Browse files Browse the repository at this point in the history
…so deployment

A new documentation file has been created to provide step-by-step instructions for migrating the plane.so deployment to a new server. This includes commands for creating a database dump, transferring the dump between servers, and restoring the database on the new server. The documentation ensures that the migration process is repeatable and reduces the risk of errors during the transition.
  • Loading branch information
mabdullahabid committed May 9, 2024
1 parent 7279a93 commit 4de2962
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions plane/migrate-to-new-server.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Migrate plane.so deployment to a new server

Create a database dump

docker exec -e PGPASSWORD=[postgres-password] -t plane-app-plane-db-1 pg_dumpall -c -U plane > dump_$(date +%d-%m-%Y"_"%H_%M_%S).sql

Copy from old server to local

scp [old-server-url]:/home/ubuntu/plane-selfhost/plane-app/dump_08-05-2024_06_48_21.sql plane_aws_dump_08-05-2024_06_48_21.sql

Copy from local to new server

scp plane_aws_dump_08-05-2024_06_48_21.sql [new-server-url]:/root/backups/plane_aws_dump_08-05-2024_06_48_21.sql

Delete and Create Database
docker compose exec plane-db bash
dropdb plane -U plane
createdb plane -U plane

Restore the database dump

cat plane_aws_dump_08-05-2024_06_48_21.sql | docker exec -e PGPASSWORD=[postgres-password] -i plane-app-plane-db-1 psql -U plane

0 comments on commit 4de2962

Please sign in to comment.