Before you start
You need:- Your running v4 instance, and a recent backup of its PostgreSQL database.
- Access to the v4 database (the source) and to a new, empty PostgreSQL database for the new installation (the target).
- A plan for the new installation. Self-hosting with Docker is the usual choice.
Choose a method
Import resumes one by one
The current version reads v4 JSON exports directly and converts them.1
Export from v4
In your v4 instance, open each resume and export it as JSON.
2
Import into the new installation
Sign in to the new installation (create an account first if needed), select New, then Import a resume, and
choose the JSON file. Reactive Resume recognizes the v4 format on its own. See Importing
resumes for details.
3
Check and repeat
Look through the imported resume, especially dates and layout, then repeat for the next one.
Run the migration scripts
The scripts live in the repository at tagv5.0.20, the last release that includes them. They were written against the database schema of that release, so you create the target database with that release first, run the scripts, and only then start the current version, which brings the data forward with its own migrations.
Prepare the scripts
Installtsx and a .env loader such as dotenvx on the machine that runs the scripts, then check out the tag:
.env file at the root of the checkout:
.env
Create the target schema
Apply thev5.0.20 migrations to the empty target database:
Migrate users
- Reads v4 users in batches and creates matching users in the target.
- Copies sign-in methods (email and password, Google, GitHub, custom OAuth). Two-factor authentication isn’t copied: every migrated user starts with it turned off.
- Writes
scripts/migration/user-id-map.json, which links each v4 user ID to its new ID. The resume script needs it. - Saves progress to
scripts/migration/user-progress.jsonafter each batch. If the run stops, run it again to continue from the last saved batch.
Migrate resumes
- Reads v4 resumes in batches, converts each to the new format, and assigns it to the right user through the ID map.
- Copies view and download statistics, public or private visibility, and the locked state.
- Saves progress to
scripts/migration/resume-progress.jsonafter each batch, and continues from there if you run it again.
These historical scripts register cleanup on normal exit, not on
SIGINT. Prefer letting a batch finish before
stopping it. After an interruption, retain the progress and ID-map files and verify the last batch before resuming.Start the current version
Point a current Reactive Resume installation at the target database and start it. On startup it applies every migration sincev5.0.20, which also fills in the new columns for the migrated users. Watch the logs for Database migrations completed.
After the migration
1
Check the data
Sign in as a few users and spot-check their resumes.
2
Test the essentials
Download a resume as PDF, and sign in with email and password and with each social provider you use.
3
Switch traffic
Point your DNS or reverse proxy at the new installation.
4
Retire v4
After a grace period with no problems, shut down the v4 instance.
What carries over
Passwords
Passwords
People who signed up with email and password keep their password. No reset is needed.
Profile pictures and images
Profile pictures and images
The database stores references to pictures, not the files. Give the new installation access to the same storage (for
example the same S3 bucket), or people re-upload their pictures.
Two-factor authentication
Two-factor authentication
Not carried over. Users who had two-factor authentication in v4 sign in with their password alone, and can set it up
again in Settings → Account.
Schema differences
Schema differences
v4’s
visibility became a public/private flag, a resume’s title became its name, and resume data was
reorganized. The scripts and the importer handle these conversions.Recover one person’s resumes later
Sometimes a person changes a resume in v4 after the main migration, or a resume didn’t come across. Handle this as a recovery case rather than re-running the scripts, and never overwrite the resume in the new installation. Keep a private record for each case, outside Git, because it links account and resume identifiers:- Case ID and the capture time of the source snapshot.
- How you verified the person owns the account.
- Source resume ID and mapped target resume ID, if there is one.
- Source and target content hashes, and the outcome:
no-op,export-copy, orblocked.
1
Confirm a source exists
Check that a source snapshot exists and note when it was taken. Records missing from every available source can’t be
reconstructed.
2
Verify ownership and mapping
Verify the requester through your approved account-ownership process, and confirm the old-to-new user mapping. A
matching email, resume title, or username alone isn’t proof. Stop if either check is incomplete.
3
Compare without writing
Identical content is a
no-op. Content that exists only in the source, or differs, is an export-copy. Missing
evidence, mapping, valid data, or source is blocked. Content hashes prove equality only, never ownership or
authenticity.4
Deliver a separate private export
Send the recovered JSON privately through an approved channel, so the person imports it as a new resume. Confirm the
delivered hash matches the source.
tooling/recovery/compare-resume.ts. It takes one serialized JSON request whose source and target already match the current resume schema, produces a dry-run manifest, and never touches a database or the network. It doesn’t convert raw v4 data; review the converter at tag v5.0.20 for that. Use synthetic data only.
Troubleshooting
The script says PRODUCTION_DATABASE_URL is not set
The script says PRODUCTION_DATABASE_URL is not set
Put both
DATABASE_URL and PRODUCTION_DATABASE_URL in .env and run the scripts through dotenvx run -- (or
export the variables yourself).Users are skipped
Users are skipped
A user is skipped when their email or username already exists in the target, or when an earlier run already migrated
them. The console output gives the reason.
Resumes are skipped
Resumes are skipped
A resume is skipped when its owner isn’t in the user ID map, when the owner already has a resume with the same slug,
or when an earlier run already migrated it.
A resume comes across empty
A resume comes across empty
When a v4 resume can’t be parsed, the scripts can create empty default data. Treat that as a failed conversion, not
a recovered resume. Keep the source export and import it by hand once you’ve confirmed it’s valid.
Migrated users can't sign in
Migrated users can't sign in
Check that you started the current version against the target database after the scripts, so its migrations ran. The
startup log shows
Database migrations completed.The migration is slow
The migration is slow
The scripts work in batches to spare the databases. Run them off-peak, give both databases enough resources, or
adjust the batch size in the script files.