Deutsch | English
Migration Workflow
This document describes the target workflow for migrating an existing Romexis installation into the Docker-based Romexis Server stack.
┌──────────────────────────────┐ │ Existing Romexis Server │ └──────────────┬───────────────┘ │ │ Romexis Migration Client │ ▼ SFTP / REST API │ ▼ ┌──────────────────────────────┐ │ Romexis Migration Service │ │ │ │ • Migration Jobs │ │ • Upload Validation │ │ • Restore Workflow │ └──────────────┬───────────────┘ │ ▼ ┌──────────────────────────────┐ │ Romexis Docker Container │ │ SQL Server │ │ Images │ │ Ergodata │ └──────────────────────────────┘
Updated Detailed Workflow
created
-> database_uploaded
-> database_restored
-> upload_complete
-> validated
-> restored
-> completed
Final states:
completed
cancelled
failed
Manual browser workflow
- Create a migration job in the Web UI.
- Upload the database backup in the browser.
- The service creates
manifest.jsonautomatically. - Trigger database restore.
- Upload file directories via SFTP.
- Confirm upload complete.
- Validate upload.
- Run restore.
- Complete migration and remove SFTP access.
Windows client workflow
- Detect Romexis installation.
- Detect SQL Server configuration.
- Detect data directories.
- Create or use a migration job.
- Create database backup.
- Upload data via rclone/SFTP.
- Call API endpoints to advance the migration workflow.
- Display logs and restore status.
Restart after restore
The migration service and Romexis container communicate via:
/data/romexis_images/.romexis_restart_state
The migration service writes a pending restart request. The Romexis entrypoint stops and restarts the Romexis process, writes the final status and the migration service removes the state file.
Phase 1: Preparation on the Source System
The source system is usually an existing Windows-based Romexis server.
Required data:
- SQL Server database backup (
.bak) - Romexis image directory
- Romexis ergo data directory
- optional cache directory
The cache directory can usually be skipped because it can be regenerated.
Phase 2: Create Migration Job
A migration job is created in the web UI.
The service generates:
- migration ID
- SFTP username
- SFTP password
- upload path
Phase 3: Upload Data
Recommended tools:
- rclone over SFTP
- WinSCP
- FileZilla
- OpenSSH SFTP
Example using rclone:
rclone copy ./migration-data sftp:upload \
--transfers 8 \
--checkers 16 \
--progress
Phase 4: Validate Upload
The migration service validates:
- manifest exists
- SQL backup exists
- image directory exists
- ergo directory exists
Later versions should add:
- checksum validation
- file count comparison
- expected size validation
Phase 5: Restore
The restore process performs or coordinates:
- stop the Romexis server container
- restore the SQL Server database backup
- copy data directories into the target volumes
- fix ownership and permissions
- start the Romexis server container
- run a final validation
The current workflow uses explicit state transitions and keeps restart coordination separated through the shared state file.
Romexis Docker Wiki
English
Getting Started
- Project Overview
- Architecture
- Quick Start
- Synology Quick Start
- Use with Docker + WSL in Windows
- Compose Runtime
- Configuration
- Container Images
Runtime Services
- Romexis Admin
- Romexis Client
- mRomexis Web App
- Runtime Layout
- Backup and Restore
- Troubleshooting
- Security
Build System
Database
Migration
Development
Source Documents
Deutsch
Erste Schritte
- Projektübersicht
- Architektur
- Schnellstart
- Synology Quick Start
- Nutzung mit Docker + WSL unter Windows
- Compose-Runtime
- Konfiguration
- Container-Images
Runtime-Dienste
- Romexis Admin
- Romexis Client
- mRomexis Web App
- Runtime-Layout
- Sicherung und Wiederherstellung
- Fehlerbehebung
- Sicherheit
Build-System
Datenbank
Migration
Entwicklung
Quelldokumente
Romexis Docker Project Wiki / Romexis-Docker-Projekt-Wiki
English Home · Deutsche Startseite · English source documents · Deutsche Quelldokumente · Security · Sicherheit
Internal operations and development wiki / Internes Betriebs- und Entwicklungswiki