Skip to content
loomark

Documentation

Moving to another server

Export the database and files on the old server and import them on the new one.

What the export contains

  • The database and every file from storage.
  • The list of environment variable names, without values.
  • manifest.json with the schema version and a fingerprint of APP_ENCRYPTION_KEY (a sha256 hash, not the key).

On the old server

Shell
cd deploy
mkdir -p exports
docker compose run --rm --no-deps -v "$PWD/exports:/exports" --user "$(id -u):$(id -g)" \
  migrate node scripts/export-instance.mjs --out /exports

The result is exports/loomark-export-<time>.tar.gz.

On the new server

  1. Step 1Install Docker and copy the deploy/ folder, the old .env and the archive.
  2. Step 2If the domain changes, correct DOMAIN and NEXT_PUBLIC_SITE_URL in .env.
  3. Step 3Start the database and storage, run the import, then start everything (commands below).
Shell
cd deploy
cp <old .env> .env
docker compose up -d postgres minio
docker compose run --rm --no-deps -v "$PWD/exports:/exports" \
  migrate node scripts/import-instance.mjs /exports/loomark-export-<time>.tar.gz
docker compose up -d
  • The import restores only into an empty database; --wipe clears a non-empty one and cannot be undone.
  • It checks APP_ENCRYPTION_KEY against the original; --force-key continues without a match.
  • Then it applies this image’s migrations and uploads the files.

License after the move

The license is bound to the installation. On a new server with the same installation ID the key stays valid. Agree a change of domain with us in advance.