Skip to main content
Version: v7

Upgrade from v6

Use the v7 exporter to create a fresh SQLite database from a v6 instance. It reads the source mounts without modifying them and produces a v7 database, a consistent v6 backup, and a migration report. Keep your original v6 installation available until you have verified the result.

Before you export

V7 uses local storage. The exporter stops if v6 is configured for S3 or has watched files. Snippets, shortened links, and other v6-only records remain in the legacy backup.

Export​

  1. Stop writers on both instances and make a backup. Use the application checkout and v7 image described in Install with Docker.
  2. Set V6_DATABASE_DIR to the directory containing database.sqlite, V6_UPLOADS_DIR to the v6 uploads, and V6_MIGRATION_OUTPUT to an existing writable directory. Relative paths resolve from docker/compose.yml. Defaults are v6/database, v6/uploads, and migration-output at the checkout root.
  3. Pull or build the configured v7 image, then start the exporter.
docker compose --env-file docker/compose.env -f docker/compose.yml run --rm --no-deps migrate-v6

At the prompts, enter /migration/source-db/database.sqlite, /migration/uploads, and a new output directory such as /migration/output/v7. For automation, add -T before the service name and pass --source-db, --source-uploads, and --output after it. --concurrency accepts 1 to 16 for media scanning.

Move the data​

  • Put the exported database/local.db in a fresh v7 database mount. Keep legacy-v6.sqlite and migration-report.json in private storage.
  • Copy originals into the v7 uploads mount. Keep compatible names exactly as written, including short v6 names. Use renamedFiles for replacements, and copy quarantined originals to uploads/quarantine/ using renamedQuarantineFiles. Use the report from the same export as the database because replacements are randomized on each fresh export.
  • Copy still thumbnails from thumbs/ into thumbnails/ and flatten thumbs/preview/ video previews into that same directory. Regenerate the items listed in thumbnailsToRegenerate after starting v7. Check the report for missing media. Changed original names need new URLs.
  • Set ownership to UID/GID 1000 and start v7 against the new mounts. Verify sign-in, a new upload, existing downloads, thumbnails, and folder shares before moving the public hostname.

If verification fails, stop v7 and return traffic to the original v6 deployment and its original volumes. Preserve the export report for diagnosis.