Skip to content
Discussion options

You must be logged in to vote

Two things to carry across, the database and media_files, and the order you do them in matters more here than anything else.

On the old box, dump the database and tar the media:

pg_dump -U mediacms mediacms > mediacms.sql
tar czf media_files.tar.gz -C /home/mediacms.io/mediacms media_files

Use pg_dump rather than copying the Postgres data directory across. The compose file runs postgres:17.2-alpine, which is almost certainly a major version or several ahead of whatever install.sh pulled in from the distro packages, and a raw data directory won't start across a major version gap. Dump and restore is the supported route and it doesn't care about the gap at all.

On the new host, clone the r…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by FurretUber
Comment options

You must be logged in to vote
0 replies
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
3 participants