Overview
The QuikData Archiving Tool packages a complete QuikData room, every related database row and every physical file, into a portable, checksummed archive, and can later restore that archive faithfully onto an empty target environment. In a single guided run it:
- Reads the site's environment and room list from the DRControl database.
- Walks the environment database to discover every row that belongs to the selected room(s), and shows the result for review before anything is exported.
- Exports each table and verifies every row count against the discovery walk. If any table doesn't match, the run halts; no partial archive is ever accepted.
- Copies the room's physical files and search indexes, and bundles everything into spanned, SHA-256-checksummed 7-Zip volumes with a manifest describing exactly what is inside.
- On restore, verifies the package, checks the target is empty before touching it, rebuilds the schema, loads every table, re-keys the room, places the files, and only brings the room online after every check passes.
Who Should Run It
A Site Administrator with access to the SQL Server. Specifically, the Administrator needs:
- A login on the SQL Server that can read the DRControl database and the environment (project) databases. Either a SQL login (username and password) or a Windows account can be used. The same credentials are used for every environment server.
- For restore, the login additionally needs rights to drop and rebuild objects in the target environment database. In practice, this means sysadmin, or db_owner on the target plus rights to write room rows in DRControl.
- Access to the machine where the tool runs, with network connectivity to the SQL Server and to the room's file storage.
What You Will Need
Gather these before starting:
| Item | Details |
|---|---|
| SQL Server host name | The server (and instance, if any) hosting the DRControl database, e.g. SQLPROD01 or SQLPROD01\QUIKDATA. |
| SQL username and password | A login with the rights described above. Alternatively, check Use Windows authentication if the Windows account has them. |
| DRControl database name | Default is DRControl; confirm if the site uses a different name. |
| SQL Server command-line utilities | The tool exports and loads data with bcp.exe. If the utilities are missing, the tool detects this and offers to install them (expect a Windows administrator/UAC prompt). |
| An archive output folder | A folder on a local drive or network share with enough free space for the whole package: the database exports plus all of the room's physical files. The tool checks that it can write there before starting. |
| For restore: the archive package folder | The folder containing the package.7z.001, .002, … volumes and manifest.json. |
| For restore: an empty target environment | An environment with no room data in it. The tool verifies this before making any change and aborts if the target is not empty. |
Before You Archive
- Make sure the room is quiet: no imports, productions, or other processing jobs should be writing to the room during the export. The export verifies row counts against the discovery walk, and a room that is actively changing can fail that verification.
- Confirm free disk space at the output folder; the package contains a full copy of the room's files.
The archive run itself makes no changes to the source environment, so the site does not need to be taken offline.
Archiving a Room, Step by Step
Launch QuikData.ArchiveTool and follow the wizard. The step rail on the left shows where the Administrator is in the process; use Next to advance. Nothing is written anywhere until the Export & reconcile step, and nothing in the source is ever modified.
1. Welcome
Summarizes what the tool will do. Click Next.
2. Connect to DRControl
- Enter the SQL Server name and the DRControl database name.
- Enter the Login and Password, or check Use Windows authentication.
- Click Test connection. Wait for the green "Connected — DRControl reachable" message before continuing. If the test fails, see Troubleshooting.
The tool reads the environment list from DRControl and reuses these credentials for each environment server. Next stays disabled until the connection test succeeds.
3. Choose a workflow
Two options:
- Archive — package a room's complete record set and files into a portable archive.
- Restore — load an archive package onto an empty target environment.
Select Archive and click Next. The restore workflow is described later in this article.
4. Select an environment
The tool lists every active environment from DRControl, with its server and database. Select the environment that contains the room(s) to archive and click Next.
5. Introspecting schema
Runs automatically. The tool reads the environment database's live structure (tables, columns, foreign keys) so it knows how to find everything that belongs to a room. Watch the live log if needed; when the status reads "Introspection complete", click Next.
6. Schema diagnostics
A read-only report of what introspection found: table and foreign-key counts, and anything unusual about the schema. Nothing here changes the database.
This page also checks whether the SQL Server command-line utilities (bcp/sqlcmd) are installed on this machine. If the banner reads "SQL Server command-line utilities missing", click Install utilities… now; the export step cannot run without them.
Use Save report… to keep the diagnostics with the records, then click Next.
7. Select rooms & run discovery
- Check one or more rooms to archive. Each row shows the room's name, id, document count, and user count.
- Click Run discovery. The tool walks the database from those rooms and materializes the exact set of rows that belongs to them, with a live log of its progress.
Discovery can take a while on large rooms. Next is enabled only after discovery completes successfully for every selected room. If a red "Discovery did not complete" banner appears, see Troubleshooting.
8. Discovery review
A read-only review of what discovery found: every table that will be exported, why it was included, and the real row counts. This is the chance to confirm the archive will contain what is expected.
- Review the summary cards and the per-table manifest.
- Click Accept to proceed, or Abort to stop. Next stays disabled until accepted.
9. Pre-flight estimate
Shows the totals for the run: rooms, tables, database rows, file bytes, and an estimated duration.
- Click Choose folder… and pick the archive output folder. The tool verifies it can write there.
- Click Next to begin the export.
Nothing has been exported yet, and no source data is modified at this step.
10. Export & reconcile
- Click Start export. Each table is exported and its copied row count is verified against the discovery walk; the per-table grid shows every table's status as it completes.
- Wait for the green "All tables reconciled — export verified" banner.
If any table's copied count doesn't match, the run halts with a red "Reconciliation failed — export halted" banner. There is deliberately no way to proceed past a mismatch; no partial archive is accepted. See Troubleshooting.
11. Package archive
The final step bundles the verified database exports, the room's physical files, its search indexes, and the room's DRControl metadata into the package.
- Confirm the Span size (the package is split into volumes of this size, default 5 GB; useful when copying to media or transferring in pieces) and the Package output folder.
- Click Start packaging and watch the progress through its stages (capturing, copying files, writing manifest, writing spans).
- When the green "Package written" banner appears, review the span checksums and click Open output folder to see the result.
Click Finish.
What's in an Archive Package
The output folder contains the spanned volumes plus the manifest:
| File | Purpose |
|---|---|
package.7z.001, .002, … |
The spanned archive volumes. Each one is SHA-256-checksummed. |
manifest.json |
The machine-readable description of the package: source site, schema version, rooms, every table with its row counts, every file with its checksum, and the per-volume checksums. Restore verifies everything against this file before loading anything. |
Inside the volumes: the per-table database exports, the room's complete file tree, its search indexes, the database schema needed to rebuild the target, and a human-readable README.txt. No connection strings or credentials are ever written into a package.
Before You Restore
- The target environment must be empty. The tool verifies this before making any change; if the target already contains room data, the run aborts with nothing modified.
- Restore rebuilds the target environment database from the schema stored in the package. Do not point the tool at an environment worth keeping.
- The target site should be on the same QuikData version as the site the archive came from (see the version note above).
- The complete package (all package.7z.* volumes plus manifest.json) must be reachable from the machine running the tool.
Restoring a Room, Step by Step
Launch the tool and complete the Welcome and Connect to DRControl steps as above, connecting to the DRControl of the site being restored into, then:
1. Choose a workflow
Select Restore and click Next.
2. Select an environment
Select the target environment the room(s) will be restored into and click Next. This environment's database will be rebuilt by the restore.
3. Select a restore package
- Click Browse… and choose the archive package folder (the folder holding the package.7z volumes and manifest.json), then click Load.
- The tool reads and verifies the manifest and shows a Package summary: source server and database, schema version, rooms, tables, row and file totals, and span count.
- Confirm the summary matches the archive intended for restore, then click Next.
4. Select rooms to restore
Check the packaged room(s) to restore; only the rooms selected are created and loaded. Use Select all / Select none as needed, then click Next.
5. Restore
- Click Start restore and watch the progress and live log.
- The run verifies every volume and file checksum, pre-flights the target, rebuilds the schema, loads every table, re-keys the room to new ids, restores constraints, places the physical files and index, and finally brings the room(s) online.
- Wait for the green "Restore complete — room(s) online" banner, which lists the new room id(s). Click Finish.
Three outcomes are possible:
| Banner | Meaning |
|---|---|
| Pre-flight aborted — no changes made to the target (amber) | The target wasn't empty or wasn't reachable. Nothing was modified. Fix the cause and start again. |
| Restore failed — halted mid-pipeline (red) | Something failed after loading began. The partially restored rooms are left offline; they never become visible to users. Click Retry restore: the tool wipes its own offline rooms and restarts from the top. |
| Restore complete — room(s) online (green) | Every stage and verification passed. |
After the Restore
- Confirm the Restore page showed "Restore complete" and note the new room id(s).
- Log in to QuikData, open the restored room, and spot-check it: browse documents, open a few natives, and run a search.
- Room users are recorded in the package for reference, but review room access and re-grant users as appropriate for the target site.
Troubleshooting
The tool writes a detailed log on the machine where it runs: C:\ProgramData\QuikData\ArchiveTool\logs\archive-YYYYMMDD.log. Include this file whenever contacting QuikData support.
"Test connection" fails / cannot connect to the SQL Server
The message next to the Test connection button shows the underlying SQL error. Common causes:
| Symptom | Likely cause and fix |
|---|---|
| "…server was not found or was not accessible" / timeout | Wrong server name, or no network path. Verify the name (including SERVER\INSTANCE if applicable), confirm reachability with ping or SQL Server Management Studio from the same machine, and check the firewall allows the SQL port. |
| "Login failed for user …" | Wrong username/password, the login is disabled, or the server is in Windows-authentication-only mode (use Windows authentication instead). |
| Connects, but a later step fails with a permission error | The login connects but lacks rights on an environment database. The same credentials are used for every environment server; verify the login has access to each one. |
"No environments found"
The DRControl database returned no environments. This most likely means a connection to the wrong database; go Back, confirm the DRControl database name, and Test connection again.
"SQL Server command-line utilities missing" / "bcp.exe was not found"
The export and restore steps require Microsoft's SQL Server command-line utilities (bcp). Click Install utilities… on the Schema diagnostics page (a Windows administrator prompt is expected), or install "Microsoft Command Line Utilities for SQL Server" manually, then return to the step that failed.
"Discovery did not complete"
Discovery found something about the room it could not safely classify, and stopped rather than risk an incomplete archive. Copy the live log and contact QuikData support with the room name and the reason shown in the banner.
A "Reclaim orphaned scratch" prompt appears
A previous archive run on this environment was interrupted and left temporary working tables behind. Answering Yes removes them; this is safe and only touches the tool's own temporary tables.
"Reconciliation failed — export halted"
A table's exported row count didn't match what discovery counted, most often because the room changed while the export was running (a processing job or user activity). Make sure nothing is writing to the room, then click Retry export; the run resumes from the last verified table. If it fails again on the same table, copy the log and contact QuikData support.
"Files found outside the room's storage root" during packaging
Some of the room's database records point at files stored outside the room's own storage folder. The tool blocks packaging by default for review. If the files are legitimately part of the room, Override and include anyway copies them into the package (and records the override in the manifest). If unsure why files live outside the root, contact QuikData support before overriding.
"Pre-flight aborted" during restore
The target environment failed a safety check, most commonly because it already contains room data or could not be reached. Nothing was changed. Pick a genuinely empty target environment, or resolve the connectivity problem, and start the restore again.
"Restore failed — halted mid-pipeline"
The restore stopped partway. The rooms it was creating are left offline and invisible to users; the target site keeps working, minus the restore. Review the live log for the cause (disk space and connectivity are the usual suspects), resolve it, and click Retry restore; the tool cleans up its own offline rooms and restarts from the beginning of the run.
The tool closed or the machine rebooted mid-run
- During an archive: nothing in the source was modified. Start the tool again and re-run; if prompted about orphaned scratch, answer Yes to clean up the interrupted run.
- During a restore: any partially created rooms were left offline and are cleaned up automatically when re-running the restore with the same package.
Version History
| Version | Date | Notes |
|---|---|---|
| v5.9 | August 2026 | Initial publication covering the Archive and Restore workflows, prerequisites, and troubleshooting reference. |
| [PLACEHOLDER] | [PLACEHOLDER] |
Comments
0 comments
Please sign in to leave a comment.