Software

Back Up and Restore Self-Hosted Virtual Tours

November 26, 2026 • By SVT Team
Back Up and Restore Self-Hosted Virtual Tours

A backup of self-hosted virtual tours should let you recover the editing application and reopen a published tour after a server failure or a bad update. Save the application, database, media, and configuration from the same recovery point. Then prove that the set works on a separate installation.

A standalone export can help keep a finished viewer available while you recover. An installation backup serves a wider purpose. It can recover editable tours, user accounts, settings, and the associations between rooms, panoramas, and hotspots when those items are included in the backup.

Inventory four parts of the installation

  • Application. Keep the exact release and revision, installed add-ons, custom files, and server rewrite rules. Record the PHP version and extensions that the installation uses.
  • Database. Create a consistent logical dump or use your host’s database backup facility. Inventory the application schema and required database objects. Document the database engine and version, character set, and privileges needed to restore.
  • Media. Include panoramas, thumbnails, generated tiles, video, audio, floor plans, and branding. Check which files live outside the app directory, including object storage. Record what can be regenerated and what needs its own protected copy.
  • Configuration. Inventory the database connection, table prefix, filesystem paths, keys needed to read encrypted data, and integration settings. Keep secrets encrypted with restricted access and keep recovery instructions available separately.

The self-hosting guide covers the installation requirements. Check your actual paths and storage providers before relying on any generic directory list.

Capture one consistent recovery point

Schedule a quiet window and pause uploads, editing, and background jobs that change the tours being backed up. Take the database dump and media snapshot while those writes are paused, or use a coordinated snapshot mechanism from your host. A transactionally consistent database dump does not synchronize separate files or buckets.

For MySQL transactional tables, the documented logical-dump workflow can use mysqldump with the single-transaction and quick options. Check options, privileges, and table engines for your version. Avoid schema changes during the dump and review coverage for routines, events, and triggers where applicable. See the MySQL dump documentation. Record the backup time, component names, checksum manifest, and encryption or recovery instructions. Keep at least one protected copy outside the application server.

Restore into a separate environment

  1. Provision the same SVT release and a compatible PHP and database runtime. Use a separate document root, database server or isolated database, storage path, and staging URL. Restrict access and disable live email, webhooks, payments, and scheduled jobs before opening the copy.
  2. Verify checksums and extract the saved application and media into the staging paths. Import the SQL dump into an empty staging database. Point the restored configuration at that database and staging storage, preserving the table prefix and any keys needed to read the restored data.
  3. Check file ownership and permissions. Compare tour and room counts with the backup manifest, then verify a representative tour’s rooms, navigation, and media. On staging, use an authorized editor account to check editability and open the published viewer as a visitor to verify links, images, and intended access behavior.
  4. Record the recovery point, elapsed time, test results, and remaining gaps. Plan the production switch after the checks pass and keep a rollback path. Re-enable each external integration only after confirming the destination.

On November 26, 2026, we ran a local drill using the SVT 10.1 revision 1 schema and viewer, PHP 8.5.8, and two independent MySQL 8.0.44 instances. The source contained a synthetic tour with two rooms, two JPEG panoramas, and a navigation link in each direction. We verified four backup checksums, restored the SQL and file archives to new paths, and pointed the configuration and PHP at the restored database socket. With the source database stopped, the restored database returned both rooms and both links, the panorama files matched byte for byte, and the SVT viewer generated HTML containing the restored tour title. The drill used synthetic data and checked server-side rendering. Test editor sign-in, browser interaction, and any external services separately on your own staging copy.

Keep a standalone export for viewer delivery

An export packages the selected tour for its intended destination. Its contents and dependencies vary by export mode and release. Inspect it and test the viewer on a separate host. For the editor and the full installation, retain the matching database, media, application, and configuration. See the virtual tour export guide for output types and handoff checks.

Frequently asked questions

How often should I back up my tours?

Start with how many hours of edits or uploads you can afford to lose. Choose a frequency that fits that limit and take an additional recovery set before application upgrades, migrations, or large changes.

What if the restored viewer opens but some rooms are blank?

Compare the database’s media references with the files and object keys in staging. Check permissions and verify which host actually served the media. A staging tour that silently loads panoramas from production has not proved that its media backup works.

Verify a tour before calling the backup ready

Keep a written record of the last successful restore and repeat it after changes to storage, hosting, or the application. Explore the Simple Virtual Tour demos for examples of scene navigation you can include in your visitor checks.

Ready to build your own Virtual Tours?

Choose hosted Cloud or Self-Hosted on your server. Review features, prices and operating responsibilities before you start.