
A colleague asks for the rate sheet that was signed off before a price change, along with the note that approved it. Today’s rates.csv has the right filename and the right byte count. It contains the wrong rate, and the note has been deleted. This is a better test of Kopia and restic than asking whether last night’s backup job finished.
We gave Kopia 0.23.1 and restic 0.19.1 the same files, made two snapshots in each tool, and started recovery with fresh client settings. Both restored the approved files byte for byte. For this particular request, restic had the shorter recovery command: one snapshot ID and two path filters. Kopia let us choose an explicit destination for each recovered file. Here is how to decide which approach suits the person who will actually do the restore.
The first snapshot contained rates.csv with the northern rate set to 125, an approval.txt note, and an unrelated unchanged.txt file. We saved SHA-256 hashes before taking the snapshots. We then changed the rate to 175, removed the note and took the second snapshots. The CSV’s length stayed at 22 bytes. An operator checking only the name and size could confidently return the wrong version.
We labeled the first state approved and the second revised, using Kopia descriptions and restic tags. Each tool had its own password and local filesystem repository on the same Windows machine. The recovery client started without the writer’s Kopia configuration or either tool’s cache. It still had the location and password for each repository. This tested a clean client setup on one machine; disaster recovery after losing that machine would also require an independently reachable copy of the repository and credentials.
In a fresh Kopia configuration, connect to the existing repository. In this PowerShell example, $kopiaRepo is its filesystem path. Supply the repository password securely when prompted or through your recovery environment. The example uses --no-persist-credentials. Our automated test supplied the password to each process and used a separate cache for recovery.
kopia repository connect filesystem --path "$kopiaRepo" --no-persist-credentials
kopia snapshot list --all --json
Find the entry for the original source and the approved time. In the JSON listing, check the description and copy rootEntry.obj from that entry into $oldRoot. Kopia also reports a snapshot manifest ID. The commands below use the root directory object ID followed by the path inside that snapshot. Create an empty recovery folder and set $kopiaOut to its path.
kopia snapshot restore "$oldRoot/rates.csv" "$kopiaOut/rates.csv"
kopia snapshot restore "$oldRoot/approval.txt" "$kopiaOut/approval.txt"
Each command names one stored file and one destination file. That works well when the person requesting the files needs a few specific items, perhaps with different output names. If the whole source directory is wanted, the root object itself can be restored to a new directory. Keep the working copy separate until you have checked the recovered files. The Kopia getting-started guide explains the repository and snapshot model.
With restic, supply the existing repository path in $resticRepo and its password. List the snapshots and match the original source, timestamp and approved tag. Set $oldId to the selected snapshot’s id. An explicit ID lets a second operator recover from the same point even after another backup runs.
restic -r "$resticRepo" snapshots --json
Set $resticOut to a new restore directory. In our test we ran restic backup . from inside the source directory, so both files were at the root of the snapshot. For another backup layout, use restic -r "$resticRepo" ls "$oldId" to see the stored paths before choosing the filters.
restic -r "$resticRepo" restore "$oldId" --target "$resticOut" --include "/rates.csv" --include "/approval.txt"
Both files appeared under their original names in the target. The unrelated file stayed out. For an operator filling a request for several files from one snapshot, the repeated --include option keeps the recovery together in a single command. The restic restore documentation covers path selection. Our restic backup guide walks through creating and checking a first repository.
Get-FileHash "$kopiaOut/rates.csv","$resticOut/rates.csv" -Algorithm SHA256
Get-FileHash "$kopiaOut/approval.txt","$resticOut/approval.txt" -Algorithm SHA256
Compare each digest with the reference saved at approval time. Agreement between the two tools alone would be weak evidence: both operators could have selected the revised snapshot. In our run the approved CSV digest began 3a19ac149b6c, while the revised one began 338d96de6aa6. Both copies of the approval note matched its original hash. We compared all 64 hexadecimal characters; the prefixes here just make the two versions easy to recognize.
As a control, we restored the complete revised snapshots to separate directories. Both contained the new rate and the unrelated file, and neither contained the approval note. The live source still contained the revised rate after the exercise. If your team has no independent manifest, have the file owner check a known value, revision number or approval record. A successful restore establishes readability; the owner’s evidence identifies the requested revision.
Choose restic for this task if your runbook usually starts with a known snapshot and a list of paths to place under one target directory. Choose Kopia if operators often retrieve individual files and want to name their destinations explicitly. An existing installation that your team can restore from reliably has little reason to change on the strength of this test alone.
Before putting either tool on remote storage, repeat the drill with a representative dataset and a fresh recovery client. Record where to find the repository, how an authorized operator obtains both storage access and the repository password, how to identify the correct snapshot, and how long the verified restore takes. A bucket’s object version history is a separate recovery mechanism. Restoring application files from a Kopia or restic repository requires the backup tool to interpret the snapshot.
If you are evaluating Object Storage with Hivenet as the repository destination, use a designated test bucket and run the same recovery before committing a backup policy. This comparison used local repositories. Remote compatibility, retrieval time and cost depend on the destination and workload.
Pick one AI, compute, or storage workload and see the difference for yourself. Spin it up in minutes, or let our team map your fastest path to production.