this post was submitted on 08 Jun 2023
12 points (100.0% liked)

Lemmy

2172 readers
34 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to [email protected].

founded 4 years ago
MODERATORS
12
Instance relocation (lemmy.click)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

I'm planning to move my instance to a new VPS provider that will allow me to scale more simply.

Has anyone done this already and can sanity check my plan? My current setup was spun up using the ansible playbook here.

Current plan is:

Lower DNS TTL to 60 seconds (already done)

Shutdown on current VPS: docker-compose down

backup /srv/lemmy// and copy to new host

sudo tar -zcvpf backup.tar.gz /srv/lemmy//

scp backup.tar.gz user@newhost

update dns A and AAAA records, wait 1 minute, verify DNS has updated

run ansible script

Shutdown on new VPS: docker-compose down

restore backup to /srv/lemmy//

Startup on new VPS with restored DB etc: docker-compose up -d

test

destroy old VPS

Increase DNS TTL to 86400

Anything I've missed? :)

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 1 points 1 year ago (1 children)

How'd you end up migrating it?

[โ€“] [email protected] 1 points 1 year ago

I didn't, I spun up an entirely new instance.