Skip to content

Practice a safe restore ​

Goal: Actually restore a backup and inspect its contents. You need Admin and a separate test installation with its own data directory or Docker volume. Restoring replaces that installation's inventory and media. Do not run this exercise on your real collection.

1. Prepare recognizable exercise data ​

  1. Start the separate installation and create its own administrator.
  2. Create the locomotive from the F0/F1/F3 exercise. Apply and save its three functions and 144 CV readings.
  3. Create a two-coach set, giving three vehicles in total.
  4. Upload the synthetic locomotive image and add one open maintenance record.
Synthetic image for the restore exercise

These input files contain no private collection or authentication data. Generate the training backup yourself in RailKeeper. Real backups do not belong in public issues or repositories.

2. Create a backup and record checkpoints ​

Open Settings > Backup > Create backup and download the JSON. Keep it outside the test data directory. Record:

Exercise checkpointExpected backup contents
Vehicles3: the locomotive and two set members
Set1 with two members
Locomotive CVs144, including original lines and export date
Locomotive functionsF0, F1, F3, Continuous and Inverted No, with provenance
Media and maintenanceOne locomotive picture and one maintenance record
AuthenticationLocal to the installation, not restored from the file

Master data and other exercise records increase the total row count shown. This total is not your number of vehicles.

After exporting, add another vehicle named AFTER BACKUP. Its disappearance will provide a visible checkpoint for restoring the earlier state.

3. Validate without restoring ​

Select the downloaded JSON under Restore backup.

Compatible exercise backup with version, tables, rows and files before restoration.
Actual validation of an exported demo backup. Selecting a file does not change inventory; confirmation is still missing. Captured with RailKeeper v0.3.0.

Review compatibility, file count, errors and warnings. The reviewed backup format is version 29. File selection alone does not restore data.

The file count covers separate files in the uploads directory. Originals stored as SQLite blobs belong to the backed-up records. A complete backup containing images and attachments can therefore show 0 files here. Also open the original media on the vehicle after restoring. The current picture sequence includes additional synthetic vehicles beside the exercise locomotive and set.

4. Deliberately confirm restoration ​

Enter RESTORE, select Restore backup and read the final confirmation.

Final confirmation before applying the compatible exercise backup.
This confirmation triggers restoration. The test uses only the separate synthetic demo. Captured with RailKeeper v0.3.0.

Confirm only in the intended test installation and wait for the result. If a reply is missing, inspect actual data and logs before retrying.

5. Verify the restored state ​

Inventory after actually restoring the demo backup.
The locomotive and both set members are present. The checkpoint vehicle created after export is absent. Captured with RailKeeper v0.3.0.
  • Sign in again with the local test account if required.
  • AFTER BACKUP must be absent; the locomotive and set must be present.
  • Check all 144 CVs, index pages and provenance.
  • Open F0/F1/F3 and their saved source evidence.
  • Open the full-size picture and inspect maintenance.
  • Export a new backup and validate that file too.

Actual export, validation and restore actions were exercised in the isolated demo in both languages. The verified full server-backup procedure is documented separately. The demo exercise does not establish Windows/Docker migration acceptance.

Recognize an incompatible file ​

Rejected exercise backup with an unsupported version and disabled restoration.
Negative test: a copy with a deliberately invalid version is rejected before restore. The original remains unchanged. Captured with RailKeeper v0.3.0.

An unsupported version keeps Restore backup disabled. Obtain a suitable RailKeeper version or the correct backup. Do not edit real backup version numbers to bypass validation. Corrupt or incomplete files also need investigation.

Which backup do I need? · Checks before and after updates

Files: 0 does not imply missing images: current storage also keeps media inside database tables included in the backup. Verify the actual opened image after restore.