Space Backup Manual

File safety and integrity

Chapter 14 of 14 · Contents

Is my data safe? Plain answers to what people ask about damaged or corrupted files, checksums, lost drives, deleted backups and who can read them, each with a link to the full details.

How do I know my files arrived intact?#

Every file gets a checksum (xxHash-128, a fingerprint of its exact bytes) as it is read on the device it comes from. The computer that receives it writes it, reads it back from the disk and compares the two checksums. Only when they match is the file kept and counted as backed up; if they differ, the copy is thrown away and sent again at once. A run that is cut off (a crash, a power cut) never leaves a half-written file in place of a good one.

The checksums are kept in each backup's manifest, and a restore checks every file against them.

More: How a backup works, Every file is checked as it arrives, Manifests, Crash safety and resume.

Are photos and videos checked too?#

Yes. They get the same checksum as every file, so each one is known to have arrived exactly as the device read it. In a backup that is Not encrypted, the computer also test-opens each photo and video as it lands: a photo must be complete with a readable picture size, a video must have a readable header and a duration, and neither may be cut short. If one fails, the computer asks the phone, tablet or computer it came from to send it again, and wakes it to do so, within milliseconds of the file landing (while the device is most likely still online and still has the file). The device keeps the item in its queue until the computer confirms the copy is good.

An encrypted photo or video is stored as data the receiving computer cannot open, so there the checksum is the check.

More: Every file is checked as it arrives.

What if the file was already damaged on my phone?#

Sometimes what the phone reads is itself incomplete: an iCloud original that had not finished downloading, a file still being written, a read error on the phone. The checksum then matches (the computer got exactly what the phone read), but in a Not encrypted backup the test-open catches the damage (in an encrypted one the computer cannot see inside the file). The phone is asked to read the full original again, downloading it from iCloud if it must, and send it again; the new copy replaces the damaged one only once it is checked.

Until then the damaged copy is kept, since a damaged copy beats none. If the phone's own copy is damaged too (it reads the very same bytes), nothing more can be done, and you are told which files (below).

For a document or other ordinary file there is no way to tell from its bytes whether it is "damaged": Space Backup backs up what is on the disk. Earlier backups keep the earlier versions of a changed file until they age out.

More: A damaged copy is sent again.

What if a drive damages a file later?#

Disks can lose data over time (a bad sector, a bit flip). Every computer re-reads all the backups on its own drives once a week (Settings → Check backups: Weekly by default, Monthly or Off), at night and at low priority, and compares every file with its checksum in the manifest. A file that does not match is repaired from a good copy (another drive of the same computer first, then another computer) and every dated backup that shares it is pointed to the repaired copy. If no good copy exists anywhere, the device it came from is asked to send it again.

How many copies are there? One per drive the folder or phone backs up to. By default a computer's folder goes to every destination in your company, so with two drives on two computers there are two copies. The daily backups on one drive share one copy of each unchanged file (hard links), so ten dates on one drive are still one copy: for repairs, add a second drive, ideally on another computer.

More: Integrity check (scrub), Where each folder goes, Auto: N copies.

What if a drive or a whole computer dies?#

Your backups are still on the other drives and computers they went to, and you restore from any of them. A drive that was only away (unplugged, a computer switched off) catches up as soon as it is back. A replacement drive is added like any destination and receives the folders that go to it. A phone's day missing on a computer that was off is copied to it from another computer that has it, without the phone.

If the computer that died was a source (its own files were backed up), you restore them on another computer of yours, or on a new one once it is signed in.

More: Catch-up when a drive comes back, Phones: sent once, copied between the computers, Restoring files, Another computer's backups.

Can Space Backup delete or overwrite my backups?#

More: How many backups are kept, Unchanged files are hard links, Protected backup files, Deleted.

Is my data encrypted, and who can read it?#

Yes, by default. Each device encrypts its backups (contents and names) before they leave it, with its own key. The computers and drives that hold them store data they cannot read. You read your own devices' backups on any of your devices; anyone else needs an approval, or a share from you.

More: Security model, in short, Encryption.

What does Digital Sign Technologies, or Space Relay, see?#

Never your files, photos or videos (except the plain items of a public link you make, passed on and not stored), and never a key it could use to read your backups. The account service knows who is in your company and which devices you have; Space Relay passes encrypted traffic between your sites without being able to read it.

More: What the service never sees.

What do I see when something cannot be fixed?#

Usually nothing: a damaged copy is repaired or sent again by itself, with no button to press. You are told only when nothing more can be done:

The company's owners then get a notification titled Damaged backup copies, naming the device and the files, for example "2 photos, videos or files of Marinas-iPad are damaged in its backup and no longer on Marinas-iPad to be sent again: IMG_1.HEIC, IMG_2.HEIC." The damaged copy is kept. On the computer holding it, the tray turns red while a damaged file has no good copy, and Open Space Backup → Settings lists it under Damaged backup files.

A tray warning "copies failed verification and were redone (check this PC's memory)" means a copy read back differently from what was read: it was redone and is good, but have that computer's memory and disk checked.

More: A damaged copy is sent again, Integrity check (scrub), Notifications.