Migrate from OSS to Pro
Step-by-step guide for migrating from OSS Password Pusher to Self-Hosted Pro
On this page
Overview
This guide walks you through migrating your data from the open source Password Pusher to Self-Hosted Pro. The migration process exports all your users, pushes, audit logs, and file attachment references to a JSON file, which is then imported into your Pro instance.
Sensitive data in the export file (push payloads, notes, passphrases) remains encrypted with your OSS instance’s key. During import, Pro uses the OSS master key you provide to decrypt that data and re-encrypt it with Pro’s key. That is why the OSS master key is required for the import step. If OSS used key rotation, you must also pass the previous keys — see If you rotated encryption keys.
What gets migrated:
- Users — All user accounts with login credentials preserved. Admin status is imported from OSS.
- Pushes — All push records (text, file, URL, QR) with encrypted payloads
- Audit Logs — Complete audit trail history
- File Attachments — Active Storage references (actual files stay in place)
What changes during migration:
- Push expiration changes from
expire_after_daysto Pro’s duration-based system - Encrypted payloads are re-encrypted with your Pro instance’s master key
What is not migrated:
- API tokens — Users must regenerate API tokens in Pro after migration (Account → API Tokens).
- Two-factor authentication — 2FA settings are not imported. Users who had 2FA enabled in OSS must set it up again in Pro.
- Instance settings — Settings changed in the OSS admin UI are not imported; reapply them in Pro.
- Notify-by-email records — Recreate notification recipients in Pro if you used that feature.
Instance settings changed in the OSS admin UI are also not imported. Reapply them in Pro after import (Administration Center).
Important: Always create a complete backup before starting the migration. Each import stage (users, pushes, audit logs, files) runs in its own transaction. Individual records that fail are reported as warnings and skipped; the import continues. Re-running is safe, but a backup is still essential.
Prerequisites
Before beginning, ensure you have:
- OSS Password Pusher running version 1.68.2 or later (the export task shipped in 1.68.2)
- Pro Self-Hosted instance set up and running (fresh installation)
- OSS encryption key — Printed in the export output (Step 1). Required at import so Pro can decrypt sensitive data in the export file and re-encrypt it with Pro’s key.
- Previous OSS encryption keys — If you ever rotated keys and set
PWPUSH_MASTER_KEY_PREVIOUSon OSS, you will need that same value at import (or you must rotate ciphertext on OSS before exporting). See If you rotated encryption keys. - Storage for file attachments:
- Starter (standard) container: Only local storage is supported. If OSS used cloud storage (S3, GCS, Azure, etc.), the import will skip file attachments and list the affected pushes. Those pushes will not have files in Pro—you can recreate them as needed, or import into Advanced or Enterprise and configure storage to migrate the files.
- Advanced/Enterprise: Configure Pro’s storage (S3, GCS, or Azure) to use the same bucket and credentials as OSS.
- Local disk: Same storage volume (or copied files) accessible to Pro at its storage path.
Migration Steps
Container names: Examples use the default Compose service names pwpush (OSS) and pwpush-pro (Pro). Compose names containers <project>-<service>-1 (for example pwpush-pwpush-1). Substitute your own service or container names (docker compose ps). Run docker compose commands from the directory that contains that stack’s docker-compose.yml.
Step 1: Export Data from OSS
On your OSS Password Pusher instance, run the export task:
# Docker (replace pwpush with your container name)
docker exec -it pwpush bin/rails pwpush:export
# Docker Compose (from the OSS compose directory)
docker compose exec pwpush bin/rails pwpush:export
This creates a JSON export file inside the OSS container at /opt/PasswordPusher/tmp/. Example output:
============================================================
Password Pusher OSS -> Pro Migration Export
============================================================
Gathering data...
Exporting 150 users...
Exporting 5000 pushes...
Exporting 25000 audit logs...
Exporting 200 active storage blobs...
Exporting 200 active storage attachments...
============================================================
Export Complete!
============================================================
Export file: /opt/PasswordPusher/tmp/pwpush_export_20260221_120000.json
Storage backend: amazon
Record counts:
- users: 150
- pushes: 5000
- audit_logs: 25000
- active_storage_blobs: 200
- active_storage_attachments: 200
NEXT STEPS:
------------------------------------------------------------
1. Copy this JSON file to your Pro instance
2. Ensure Pro is configured with the same storage backend:
Storage backend: amazon
-> Configure Pro with the same S3-compatible credentials and bucket
3. Run the import task in Password Pusher Pro:
bin/rails 'pwpush:import[/path/to/export.json,YOUR-OSS-MASTER-KEY]'
Your OSS master (encryption) key for this instance:
749b1022e1cb83fb04f3022eacaf3bfef60c6d47f83e6fb41f534a05fc69929f
Use this value as YOUR-OSS-MASTER-KEY (decrypts and re-encrypts push payloads).
Documentation: https://docs.pwpush.com/docs/migrate-oss-to-pro/
============================================================
Copy the printed master key. You will pass it into the Pro import in Step 4 without putting the value on the command line.
Step 2: Copy Export File to Pro Instance
The export file was created inside the OSS container at /opt/PasswordPusher/tmp/. You need to copy it out of the OSS container and then into your Pro container.
Run each docker compose command from the compose project directory for that stack.
Copy the file out of the OSS container
First, copy the export file from inside the OSS container to your local machine:
# Docker
docker cp pwpush:/opt/PasswordPusher/tmp/pwpush_export_20260221_120000.json ./
# Docker Compose (from the OSS compose directory)
docker compose cp pwpush:/opt/PasswordPusher/tmp/pwpush_export_20260221_120000.json ./
Replace pwpush_export_20260221_120000.json with the actual filename shown in the export output.
Copy the file into the Pro container
Next, copy the export file into your Pro container:
# Docker
docker cp ./pwpush_export_20260221_120000.json pwpush-pro:/opt/PasswordPusher/tmp/
# Docker Compose (from the Pro compose directory)
docker compose cp ./pwpush_export_20260221_120000.json pwpush-pro:/opt/PasswordPusher/tmp/
If your OSS and Pro containers are on different servers, transfer the file between servers first using scp or similar (only over a trusted channel):
# Copy from local machine to remote server running Pro
scp ./pwpush_export_20260221_120000.json user@pro-server:~/
Then on the Pro server, copy the file into the container.
Step 3: Configure Storage (If Using File Attachments)
Starter container: If your OSS export used non-local storage (e.g. S3, B2, MinIO), the import will skip file attachments and report which pushes were affected. To migrate those files, use the Advanced or Enterprise container and configure storage as below.
Local Disk Storage
OSS and Pro use different subpaths. Either mount OSS storage at Pro’s path or copy the files:
| Edition | File Storage Path |
|---|---|
| OSS | /opt/PasswordPusher/storage/ |
| Pro | /opt/PasswordPusher/storage/files/ |
Option A — Mount the OSS volume at Pro’s file path
OSS Compose names the volume pwpush-storage. Docker Compose prefixes that with the project name (usually the directory name). Look up the full name with docker volume ls, then declare it as an external volume on the Pro stack so you do not create an empty new volume:
# docker-compose.yml for Pro
services:
pwpush-pro:
volumes:
- pwpush-pro-data:/opt/PasswordPusher/storage
- oss-storage:/opt/PasswordPusher/storage/files
volumes:
oss-storage:
external: true
name: <oss-project>_pwpush-storage # see `docker volume ls`
Keep pwpush-pro-data for Pro’s own storage (database and temp files). The second mount overlays OSS files at Pro’s file-storage path.
Option B — Copy files into Pro
docker cp pwpush:/opt/PasswordPusher/storage/. ./oss-files/
docker cp ./oss-files/. pwpush-pro:/opt/PasswordPusher/storage/files/
docker compose exec -u root pwpush-pro chown -R 1000:1000 /opt/PasswordPusher/storage/files
The Pro image runs as user pwpush (uid 1000), so chown must run as root (-u root).
Cloud Storage (Advanced/Enterprise)
Pro configures storage in Administration Center → Settings → File Storage.
- S3-compatible (Amazon S3, Backblaze B2, MinIO, R2, etc.): Configure Pro’s S3 service with the same bucket, endpoint, and credentials as OSS.
- Google Cloud / Azure: Configure Pro’s GCS or Azure service with the same bucket/container and credentials.
Files stay in your existing bucket; Pro only needs the same credentials and bucket so imported blob references resolve.
Step 4: Import Data to Pro
On your Pro instance, run the import task with the export file path. Pass the OSS master key via the PWPUSH_OSS_MASTER_KEY environment variable (preferred) or as the second argument.
Do not put the key on the command line (-e PWPUSH_OSS_MASTER_KEY=value still writes the value into shell history). Read it into the environment, then pass the variable name only:
# Paste the key from the export output, then press Enter (the value is not echoed)
read -rs PWPUSH_OSS_MASTER_KEY && export PWPUSH_OSS_MASTER_KEY
# If OSS used key rotation, also pass previous keys (comma-separated; same format as PWPUSH_MASTER_KEY_PREVIOUS)
read -rs PWPUSH_OSS_MASTER_KEY_PREVIOUS && export PWPUSH_OSS_MASTER_KEY_PREVIOUS
# Docker — env var name only (recommended)
docker exec -it -e PWPUSH_OSS_MASTER_KEY pwpush-pro bin/rails 'pwpush:import[/opt/PasswordPusher/tmp/pwpush_export_20260221_120000.json]'
# Docker Compose — from the Pro compose directory (recommended)
docker compose exec -e PWPUSH_OSS_MASTER_KEY pwpush-pro bin/rails 'pwpush:import[/opt/PasswordPusher/tmp/pwpush_export_20260221_120000.json]'
# With previous keys as well
docker compose exec -e PWPUSH_OSS_MASTER_KEY -e PWPUSH_OSS_MASTER_KEY_PREVIOUS pwpush-pro bin/rails 'pwpush:import[/opt/PasswordPusher/tmp/pwpush_export_20260221_120000.json]'
# Or pass the current key as the second argument (this value is visible in shell history)
docker compose exec pwpush-pro bin/rails 'pwpush:import[/opt/PasswordPusher/tmp/pwpush_export_20260221_120000.json,YOUR-OSS-MASTER-KEY]'
You’ll see progress output:
============================================================
Loading export file...
============================================================
Import from OSS Password Pusher
============================================================
Export metadata:
Version: 1.68.2
Exported at: 2026-02-21T12:00:00Z
Schema version: 1
Storage backend: amazon
Record counts:
- users: 150
- pushes: 5000
- audit_logs: 25000
- active_storage_blobs: 200
- active_storage_attachments: 200
IMPORTANT: Ensure your Pro instance is configured with storage backend:
amazon
============================================================
Starting import...
Importing users...
Users: 150/150 (100.0%)
-> 140 users created, 10 matched to existing accounts
Importing pushes...
Pushes: 5000/5000 (100.0%)
-> 5000 pushes imported, 0 skipped (already exist)
Importing audit logs...
Audit logs: 25000/25000 (100.0%)
-> 25000 audit logs imported
Importing Active Storage records...
Blobs: 200/200 (100.0%)
Attachments: 200/200 (100.0%)
-> 200 blobs, 200 attachments imported
============================================================
Import completed successfully!
============================================================
Summary:
- Users created: 140
- Users matched to existing: 10
- Pushes imported: 5000
- Pushes skipped (already exist): 0
- Audit logs imported: 25000
- Active Storage blobs imported: 200
- Active Storage attachments imported: 200
If you use the Starter container and OSS used cloud storage, the import skips file attachments and prints a notice listing the affected pushes. Those pushes will not have files in Pro; you can recreate them as needed, or import into Advanced or Enterprise and configure storage to migrate the files.
If you rotated encryption keys
OSS can decrypt pushes encrypted with older keys when PWPUSH_MASTER_KEY_PREVIOUS is set. That value is a comma-separated list of previous master keys (whitespace around commas is ignored) — the same format documented for OSS key rotation.
Pro import decrypts with the current OSS master key you pass as PWPUSH_OSS_MASTER_KEY. Ciphertext still encrypted under an older key will not decrypt unless you also pass those older keys.
Preferred: set PWPUSH_OSS_MASTER_KEY_PREVIOUS to the same value as OSS PWPUSH_MASTER_KEY_PREVIOUS (see the read -rs commands above). Pushes encrypted with older keys then decrypt during import.
Older Pro images that do not honor PWPUSH_OSS_MASTER_KEY_PREVIOUS: re-encrypt OSS pushes with the current master key before exporting. Take a backup first. On OSS, with PWPUSH_MASTER_KEY_PREVIOUS still set so old ciphertext can be read, rotate the encrypted Push attributes (payload, note, and passphrase):
docker compose exec pwpush bin/rails runner "Lockbox.rotate(Push, :payload); Lockbox.rotate(Push, :note); Lockbox.rotate(Push, :passphrase)"
Then run the export (Step 1). After rotation, the export only contains ciphertext for the current OSS master key.
If a push cannot be decrypted during import, Pro still imports the record without that payload and prints:
Warning: Failed to decrypt payload_ciphertext: Decryption failed
(The same warning is used for note_ciphertext and passphrase_ciphertext.)
Step 5: Verify the Migration
After import completes:
- Test user login — Log in with an existing user’s credentials
- Reverify admin users — In Administration Center (open the app menu and choose Administration Center, or go to
/admin), go to Users. Admin status is imported from OSS. Confirm which users should have administrator access and add or remove admin rights as needed. - Two-factor authentication — 2FA is not migrated. Users who had two-factor authentication enabled in OSS must set it up again in Pro. Tell those users; they will not be prompted with their old authenticator until they re-enable 2FA.
- Reapply instance settings — Settings you changed in the OSS admin UI are not imported. Reapply the equivalent settings in Pro’s Administration Center.
- Check existing pushes — Navigate to the dashboard and verify pushes appear
- Test push retrieval — Access an existing secret URL and verify it works
- Test file downloads — If you have file pushes, verify files can be downloaded
- Create new push — Create a new push to verify the system works end-to-end
Step 6: Delete the Export File
Once you have confirmed the import, delete the export file from the OSS container, the Pro container, and any machine it passed through. Then clear the keys from your shell.
# OSS container (from the OSS compose directory)
docker compose exec pwpush rm -f /opt/PasswordPusher/tmp/pwpush_export_20260221_120000.json
# Pro container (from the Pro compose directory)
docker compose exec pwpush-pro rm -f /opt/PasswordPusher/tmp/pwpush_export_20260221_120000.json
# Host machines the file was copied to
rm -f ./pwpush_export_20260221_120000.json
# If you used scp, delete the copy on the remote host as well
# ssh user@pro-server 'rm -f ~/pwpush_export_20260221_120000.json'
# Clear keys from the current shell
unset PWPUSH_OSS_MASTER_KEY
unset PWPUSH_OSS_MASTER_KEY_PREVIOUS
Replace the filename with the one from the export output. If you used Option B, also delete the temporary ./oss-files/ copy.
Troubleshooting
Error: “Export file not found”
Ensure the file path is correct and accessible from within the container:
# List files in tmp directory
docker compose exec pwpush-pro ls -la /opt/PasswordPusher/tmp/
# Verify file exists
docker compose exec pwpush-pro cat /opt/PasswordPusher/tmp/pwpush_export_*.json | head -20
Error: “Unsupported or missing schema version … Expected 1.”
The export file was created with a different version of the export task. Ensure both your OSS and Pro instances are running compatible versions. OSS must be 1.68.2 or later.
Note: “Users already exist with matching email addresses”
This is informational, not an error. When the import finds users in Pro with matching email addresses from the OSS export, it will:
- Match the OSS user to the existing Pro user
- Import their pushes, audit logs, and file attachments to the existing user’s account
- Skip creating duplicate user records
This allows you to import data even if some users already exist in Pro.
Note: “Pushes have URL tokens that already exist” or “skipped (invalid url_token)”
Informational, not errors. The import skips pushes whose URL token already exists in Pro (e.g. from a previous import) or whose URL token is blank/invalid. It continues with all other pushes.
Warning: “Failed to decrypt payload_ciphertext: Decryption failed”
The OSS master key provided doesn’t match the key used to encrypt that push (or a previous key is missing).
Solutions:
- Use the key from the export output (Step 1). If you no longer have it, retrieve it on the OSS instance:
docker compose exec pwpush bin/rails runner "puts Lockbox.master_key"(ordocker exec -it pwpush ...for Docker). - If OSS was configured with
PWPUSH_MASTER_KEY_PREVIOUS, pass that same comma-separated value asPWPUSH_OSS_MASTER_KEY_PREVIOUSat import. On older Pro images, runLockbox.rotateon OSS before exporting — see If you rotated encryption keys.
The push record is still imported; that payload (and similarly notes or passphrases, if those decrypts fail) is omitted.
File Attachments Not Working
Starter container and OSS used cloud storage: File attachments are not imported. The import output lists the affected pushes. Those pushes will not have files in Pro—recreate them as needed, or import into the Advanced or Enterprise container (configure storage to match OSS, e.g. Pro’s S3 service pointing at your OSS bucket) and re-run the import to migrate the files.
Files in storage but not accessible after migration:
- Advanced/Enterprise: In Administration Center → Settings → File Storage, ensure the service (S3, GCS, or Azure) uses the same bucket and credentials as OSS.
- For local storage, ensure the volume is mounted at Pro’s storage path or files were copied there. Check that files have the same uid/gid as the Pro container (default 1000:1000). If they don’t, fix ownership from the host or from inside the container as root:
docker compose exec -u root pwpush-pro chown -R 1000:1000 /opt/PasswordPusher/storage/files. - Test access:
docker compose exec pwpush-pro bin/rails runner "puts ActiveStorage::Blob.first.url"
Import Fails Partway Through
Each import stage (users, pushes, audit logs, files) runs in its own transaction. Individual records that fail are reported as warnings and skipped; the import continues. Re-running is safe: existing users are matched by email and pushes whose URL token already exists are skipped.
To retry:
- Check the warning or error message for the specific issue
- Fix the underlying problem
- Run the import again
Post-Migration Checklist
After confirming everything works:
- Verify all user accounts can log in
- Tell users who had 2FA in OSS to set it up again in Pro
- Confirm admin users in Administration Center → Users
- Reapply instance settings that were customized in the OSS admin UI
- Test creating and viewing pushes
- Test file uploads and downloads (if using file pushes)
- Verify audit logs appear in push details
- Test the admin dashboard
- Delete the export file and unset
PWPUSH_OSS_MASTER_KEY(Step 6)
See Also
- Pro Self-Hosted — Overview of Pro Self-Hosted features
- Application Encryption — OSS master key and
PWPUSH_MASTER_KEY_PREVIOUS - Getting started checklist — Greenfield Pro install (not for OSS migrations)