Space Backup Manual

Command line reference

Chapter 8 of 14 · Contents

Every button, menu item and setting of Space Backup also exists as a command, with the same names, options, output and exit codes on Windows, macOS and Linux, so a person, a script or an AI agent can run Space Backup entirely from a terminal. This chapter lists every command with its arguments, exit codes, JSON fields and an example.

Which program, and how it works#

The command line is a separate small program that talks to the running Space Backup app on the same computer. It does not do the work itself: it sends the request to the app, waits for the answer and prints it.

PlatformProgramWhere it isTalks to
Windowssbctl (sbctl.exe)next to SpaceBackup.exe in %LOCALAPPDATA%\Programs\SpaceBackup. The app adds this folder to your user PATH when it starts, so a new PowerShell or Command Prompt window finds sbctlthe tray app, over a named pipe that only your Windows user can open
macOSspacebackupinside the app: Space Backup.app/Contents/MacOS/spacebackup (for an app in Applications: /Applications/Space Backup.app/Contents/MacOS/spacebackup)the Space Backup daemon behind the menu-bar app, over ~/Library/Application Support/SpaceBackup/control.sock
Linuxspacebackup/usr/bin/spacebackup (.deb), ~/.local/bin/spacebackup (.tar.gz), or the AppImage file itself (run it with a command)the daemon (the spacebackup.service systemd user service), over the Unix socket $XDG_RUNTIME_DIR/spacebackup.sock that only your user can open

On Linux and macOS the same spacebackup file is both the command line and the daemon (spacebackup daemon). On Windows sbctl.exe is a console program next to the tray app, so that its output works in PowerShell and cmd pipes.

In this chapter a command is written without the program name: status means sbctl status on Windows and spacebackup status on macOS and Linux. Examples show one or the other; they work the same on every platform unless a section says otherwise.

PS C:\> sbctl status
idle: All good; last backup 2026-10-18 02:31
last success: 2026-10-18 02:31; next run: 2026-10-19 02:14
last run: ok 2026-10-18 02:31: 214 new, 12 changed, 12194 unchanged (linked), 1240.5 MB
machine: ANNA-PC, port 47800, company key 3F9A-C2D1, version 0.12.1
Space Relay: Not needed: all PCs are on this network

Things that hold for every command:

Note: On Windows, a new sbctl and an older SpaceBackup.exe (or the other way round) may not understand each other. Both come from the same release and are updated together; if you see is SpaceBackup.exe older than sbctl.exe?, let the update finish or reinstall.

AI agents (MCP)#

An AI app (Claude Desktop, Claude Code, Cursor, VS Code and other Model Context Protocol clients) can use Space Backup directly: sbctl mcp on Windows and spacebackup mcp on macOS and Linux run a local MCP server that offers every command of this chapter as a tool. It comes with the normal install (version 0.16.23 or later) and talks to the running app like the command line does; nothing listens on the network.

To connect Claude Code, run claude mcp add --scope user space-backup -- sbctl mcp (Windows) or claude mcp add --scope user space-backup -- spacebackup mcp (macOS, Linux). The lines for Claude Desktop, Cursor and VS Code, the Space Backup agent skill (how an agent does the common jobs well, and its rules) and the API specifications are on the page For developers & AI agents.

Agents in the cloud (no Space Backup on their computer) connect to your account instead: the remote MCP server https://spacebackup.net/account/mcp. The AI app opens the Space Backup sign-in, you allow it (or allow reading only), and it manages the company as you, with your role: devices and their last backup, members and invitations, groups, albums, shares, the relay balance, and back up now on a PC. It never sees files, photos or keys; every call is in the company's audit log, and AI agents on your account page disconnects it. Setup for Claude, Claude Code, Cursor and VS Code: For developers & AI agents.

Global flags and JSON#

These flags may stand anywhere on the command line, before or after the command.

FlagWhat it does
--jsonMachine-readable output: one JSON document per command, on one line. Streams (--follow, status --watch, notifications watch) print one JSON object per line.
--quiet, -qNo text on success. Errors are still printed (to stderr), and the exit code still tells what happened.
--profile <name>Talk to a separate instance with its own settings and state (a short name: letters, digits, - or _, up to 20 characters). Used for tests; such an instance listens on 127.0.0.1 only and calls itself <COMPUTER>-<name>.
--yes, -yAccepted, changes nothing (the command line never asks).
--help, -h, -?, /?The same as help: all commands, or with a command, its options.

Options of a command are written --name value or --name=value. An option given twice is an error (exit 2), except the few that may repeat: tx --kind, photos list --source, albums clone --id and albums import --dest. A flag (an option without a value) refuses a value (--wait=yes is an error).

JSON output#

With --json:

$ spacebackup --json folders remove /home/anna/Old
{"ok":false,"partial":false,"message":null,"error":"Not in Space Backup: /home/anna/Old (spacebackup folders add)"}
$ echo $?
1

Without --json, a successful answer (exit 0, and also exit 4) is printed on stdout; an error goes to stderr as sbctl: <message> on Windows or spacebackup: <message> on macOS and Linux.

Watching and following#

Some commands can keep printing. The command line asks the app again every second (every 2 seconds for status --watch), and passes on what is new.

CommandKeeps printingStops
status --watchthe status, each time it changes--until-idle (once nothing is running), --for <duration>, or Ctrl+C
tx --follow, events --follow, log --followeach new record, event or log line--for <duration> or Ctrl+C
notifications watcheach new notification--for <duration> or Ctrl+C

Ctrl+C ends a stream with exit code 0. With --json, each item is one JSON object on its own line, so a program can read them one by one as they come.

Note: tx, events, log and notifications watch also accept --after <n>, a cursor (the cursor or seq of the previous answer). The command line uses it while following; you only need it to page by hand. notifications watch also takes --wait <seconds> (at most 25) and --unread <n>: the answer waits until something changes.

Exit codes#

The exit code every sbctl (and spacebackup) command returns; the same numbers on every platform.

CodeMeaningTypical commands
0OK.all
1Error: it did not happen. The message says why.all
2Bad usage: an unknown command or option, a missing or malformed argument. Nothing was sent to the app.all
3Space Backup is not running (start it with start).every command that needs the app
4Partial: done, but not fully (some files, destinations or computers failed; a backup ended with warnings; a restore was stopped).now --wait, restore, albums add/remove/clone/caption/restore/delete, photos save/restore/new-album, gdrive now, cancel --restore
5Needs administrator (Windows) or root (Linux) rights.firewall on Windows; firewall --allow on Linux when sudo would ask for a password
6Not invited yet: you signed in with a personal email (gmail.com, outlook.com, …) and nobody has invited it to a company.account join
7This computer needs another name: another computer of your company already has its name, or the name cannot be used. settings set machine-name <name> answers it.account join, account code

What exit 4 means for the commands that use it:

Values: frequencies, destinations, times#

Several options take the same kinds of values; they are checked by the command line before anything is sent.

Frequency#

How often a folder (folders add|set --frequency), the whole computer (settings set frequency) or a Google account (gdrive set <email> frequency) is backed up. The night window is the time range in which scheduled backups run (settings set night-window, default from the Settings window); each computer and folder starts at its own fixed time in it.

ValueMeaningFoldersGlobal frequencyGoogle accounts
daily (also night)every night in the night window. folders list prints it as night.yes (default)yesyes (night)
weeklyonce a week in the night window, on the weekday of the folder's first backupyesnono
monthlyonce a month in the night window, on the day of the month of its first backup (29–31 become the last day of shorter months)yesnono
onceone backup at the next night window, then only on demand; listed as "backed up once on <date>"yesnono
monthly:<day>that day of the month (1–31), in the night windowyesnono
monthly:<day>:HH:mmthat day of the month at that timeyesnono
hourlyevery houryesyesyes
every:Nevery N hours (1–24)yesyesyes
daily:HH:mmevery day at that timeyesyesyes
weekly:<day>:HH:mmone weekday (mon … sun) at that timeyesyesyes
manualnever on a schedule, only with nowyesyesyes
globalfollow the global frequencyyesnono

The add dialogs only offer Only once, Daily, Weekly and Monthly; the other forms are for the command line. folders list --json gives the dialog's choice in choice (once, daily, weekly, monthly, or null for an advanced form or global).

Note: max-backups counts date folders, but the newest complete backup of each folder in the list is never removed from a destination, because a weekly, monthly or once folder is not in every date folder. A once folder's backup stays until the folder is removed from the list. A folder can keep its own number of backups (folders set <path> --keep N); see How many backups are kept.

Destinations#

Which destinations a folder (folders add|set --dest) or a Google account (gdrive add --dest, gdrive set <email> dest) goes to.

ValueMeaning
allevery destination (the default)
auto:NN copies (1–99), on different computers and different physical disks where possible
selected:<id>|<id>…exactly these destinations: ids as dest list prints them (OFFICE-NAS:/srv/backup), or a local path or backup root of this computer. Put the value in quotes in a shell, because of the |.

Times and durations#

Short forms#

A group name alone runs its listing:

Short formSame as
folders (also folder)folders list
dest (also destinations, dests)dest list
peerspeers list
settingssettings get (and settings <key> = settings get <key>)
keykey fingerprint
runsruns list
updateupdate status
shellshell status
gdrivegdrive list
accountaccount status
devicesdevices list
recoverrecover list
shareshare list
albumsalbums list
relayrelay balance
photosphotos list
notificationsnotifications list

Status and control#

status#

status [--watch [--interval 2s] [--until-idle] [--for 5m]]

What Space Backup is doing now: the state, progress, the current item, the last and next run, warnings, the computer's name and port, the company key's fingerprint, Space Relay and updates. The same as the tray icon's tooltip and the Status… window.

OptionMeaning
--watchprint the status again each time it changes (with a --- HH:mm:ss line before each one)
--interval <duration>with --watch: how often to ask (default 2s, at least 0.2 s)
--until-idlewith --watch: stop as soon as nothing is running (state other than backing-up or busy)
--for <duration>with --watch: stop after that long

state is one of idle, backing-up, busy (a check, a fan-out copy or another job), warning or error.

JSON fields (--json): state, text, progress (percent or null), bytesDone, bytesTotal, scanning, currentItem, lastSuccessUtc, nextRun, machine, port, loopbackOnly, companyKey (fingerprint), fanOutBacklog (files, bytes: copies still to be passed on to other destinations), incomplete (list of destination, date: date folders not finished), damaged (files found damaged), lastRun (state, summary, startedUtc, finishedUtc), relay (address, state, problem, text, publicIp, rttMs, usedBytesThisMonth, quotaBytes, bytesOut, bytesIn, enabled, status, activationNeeded, activateUrl, groupCode), warnings (plain sentences), firewallClosed (Linux: the firewall does not let other computers in yet), version, updatedFrom (once after an update), updateAvailable, outOfDate (this computer runs an older version than the update feed or another computer: running 0.16.79; 0.16.82 is in the update feed and on CHIA2; update: …, the update's own words on why it has not installed yet; null when up to date), vision (the photo analysis self-check, on a computer that runs it: ok, worker idle 3 min, or STALLED since … when photos or videos wait while a computer that could do them stands idle; a health check can look for STALLED).

The text has an out of date: line and a vision: line for them (vision: STALLED since 2026-11-03 14:05 (20 min): 23 item(s) wait here (photoFaces 14, videoFaces 9), DST-AI-3090, mars-001 idle: offered nothing; assignment retried 1 time(s)). peers adds (out of date) after a computer's version when it is older than the newest one known.

Example: wait in a script until the running backup is over.

$ spacebackup --json status --watch --until-idle
{"state":"backing-up","text":"Backing up… 42% (1.20 GB of 2.86 GB)","progress":42,"bytesDone":1288490188,"bytesTotal":3067834368,"scanning":false,"currentItem":"/home/anna/Documents/Reports/q3.xlsx","lastSuccessUtc":"2026-10-17T06:14:03Z","nextRun":"2026-10-19T06:14:00Z","machine":"ANNA-LAPTOP","port":47800,"loopbackOnly":false,"companyKey":"3F9A-C2D1","fanOutBacklog":{"files":0,"bytes":0},"incomplete":[{"destination":"OFFICE-NAS:/srv/backup","date":"2026-10-18"}],"damaged":[],"lastRun":null,"relay":null,"warnings":[],"firewallClosed":false,"version":"0.12.1","updatedFrom":null,"updateAvailable":null}
{"state":"idle","text":"All good; last backup 2026-10-18 14:02","progress":null,"bytesDone":null,"bytesTotal":null,"scanning":false,"currentItem":null,"lastSuccessUtc":"2026-10-18T14:02:51Z","nextRun":"2026-10-19T06:14:00Z","machine":"ANNA-LAPTOP","port":47800,"loopbackOnly":false,"companyKey":"3F9A-C2D1","fanOutBacklog":{"files":0,"bytes":0},"incomplete":[],"damaged":[],"lastRun":{"state":"ok","summary":"61 new, 4 changed, 3847 unchanged (linked), 212.7 MB","startedUtc":"2026-10-18T13:58:10Z","finishedUtc":"2026-10-18T14:02:51Z"},"relay":null,"warnings":[],"firewallClosed":false,"version":"0.12.1","updatedFrom":null,"updateAvailable":null}

start#

start

Starts Space Backup and waits until it answers (up to a minute). Already running: says so, exit 0.

PS C:\> sbctl start
Space Backup started

stop#

stop

Quits Space Backup (the Windows tray app, the Linux or macOS daemon). A backup that was running is resumed at the next start. On macOS, launchd does not start it again after stop (it does at the next login, or with start). Not running: says so, exit 0.

Note: On Linux, quitting the graphical app (spacebackup-gui) does not stop backups; only stop (or Stop service… in its window) stops the daemon.

PS C:\> sbctl stop
Space Backup stopped

restart#

restart

stop, then start. Needed after a few settings (for example port); the answer of settings set says so.

$ spacebackup restart
spacebackup.service: active

now#

now [<path>…] [--wait] [--date YYYY-MM-DD]

Backs up now: everything, or exactly the given files and folders (the Explorer and file manager verb Space Backup Now). If a backup is already running, this one starts right after it.

Argument / optionMeaning
<path>…files or folders to back up now (up to 1000). They do not need to be in a backed-up folder. Paths that do not exist are reported; all of them missing is exit 1.
--waitwait until the run ends and print its summary. Exit 0 OK, 4 warnings or partial, 1 nothing backed up.
--date YYYY-MM-DDfor testing only, needs --wait: back up into that date's folder.

JSON fields: started, queued (it waits for the running backup), runId, run (with --wait: the finished run, fields as in runs show), message.

$ spacebackup now --wait
backup finished: Ok: 214 new, 12 changed, 12194 unchanged (linked), 1240.5 MB
9f3c2a71e0b84d5c9a1e6f2b7c8d0e11  2026-10-18 14:15 -> 14:19  now       ok        226 copied (1.21 GB), 12194 linked, 0 unchanged, 0 skipped, 0 failed; 2 destination(s)

cancel#

cancel [--restore]

Cancels the running backup. A cancelled run is not resumed later (an interrupted one, for example by a shutdown, is). Nothing running: exit 1 no backup is running.

--restore stops the restores running now instead (the Stop button of the Restore window). The files restored so far stay. Each stopped restore ends with cancelled: true and exit 4; nothing running: exit 1 no restore is running.

PS C:\> sbctl cancel
cancelling the running backup (it is not resumed)

Folders#

The folders this computer backs up. See Folders for what each choice means.

folders list#

folders [list]

The backed-up folders: frequency, destinations, last and next backup, where the copies are, and size. Listing never reads the disk: the size and file count are those measured by the last backup (or, for a folder not backed up yet, by a background count at low priority), and are null until measured.

Text: one block per folder, headed D:\Projects (300.3 GB · 146,402 files) (or size pending, calculating… 12,340 files), then a Total: … in N folders line. A folder that no longer exists is marked (MISSING).

JSON (a plain array, one object per folder): path, exists, frequency (as set), effectiveFrequency (what applies, for example the global one), choice (once, daily, weekly, monthly or null), destinationsMode (all, auto:N, selected:…), placement (where the copies are), lastBackupUtc (for once: the date of its one backup), nextRunUtc, running, incompleteDate, warning, selectedDestinations, copies, sizeBytes, files, sizeAsOf (when it was measured), countingFiles (files counted so far while a count runs), encrypt (the folder's setting; null where the platform has no encryption), encryptPending (encryption is on but this computer cannot encrypt yet: backed up as plain files until it can), destinations (each drive it goes to: id, name, encrypted true or false; a drive can differ from the folder's setting, see --plain-dest), keep (its own number of backups kept on each drive, null: the global setting), effectiveKeep (the number that applies), backups (its backups on the drives now).

$ spacebackup --json folders
[{"path":"/home/anna/Documents","exists":true,"frequency":"night","effectiveFrequency":"night","choice":"daily","destinationsMode":"all","placement":"ANNA-LAPTOP:/media/anna/Backup, OFFICE-NAS:/srv/backup","lastBackupUtc":"2026-10-18T06:14:03Z","nextRunUtc":"2026-10-19T06:14:00Z","running":false,"incompleteDate":null,"warning":null,"selectedDestinations":null,"copies":null,"sizeBytes":8724152320,"files":40211,"sizeAsOf":"2026-10-18T06:12:40Z","countingFiles":null,"encrypt":true,"encryptPending":false,"destinations":[{"id":"ANNA-LAPTOP:/media/anna/Backup","name":"ANNA-LAPTOP → /media/anna/Backup/SpaceBackup","encrypted":true},{"id":"OFFICE-NAS:/srv/backup","name":"OFFICE-NAS → /srv/backup/SpaceBackup","encrypted":false}]}]

folders add#

folders add <path> [--frequency F] [--dest D] [--encrypt on|off] [--plain-dest IDS] [--encrypted-dest IDS] [--keep N|global]

Starts backing up a folder (Add to Space Backup in Explorer and the file managers, Add… in Backed-up folders). Adding a folder that is already in the list changes nothing except the options given.

OptionMeaning
--frequency Fhow often; default daily. Any value of Frequency.
--dest Dwhere it goes; default all. See Destinations.
--encrypt on|offEncrypt this folder's backups, on every drive it goes to; default on. Takes effect once this computer is signed in (account signin); until then the folder is backed up as plain files and folders list shows encryptPending: true.
--plain-dest IDSthese drives get the folder as plain, readable files (ids as in dest list, separated by |); its other drives follow --encrypt. A folder with selected destinations goes to them too.
--encrypted-dest IDSthese drives get it encrypted (with --encrypt off, the exceptions the other way).
--keep N|globalbackups of the folder kept on each drive it goes to: a number 1–999, or global (default: the setting max-backups, Backups to keep on each drive).

The answer says what was done:

PS C:\> sbctl folders add D:\Projects --frequency weekly --dest auto:2
Added D:\Projects: weekly, in the night window to 2 copies placed automatically, encrypted; first backup 2026-10-19 02:41
PS C:\> sbctl folders add D:\Home --frequency daily:03:00 --dest "selected:CHIA2:K:\|CHIA3:I:\" --plain-dest "CHIA2:J:\|CHIA3:E:\"
Added D:\Home: daily at 03:00 to 4 drives, encrypted on 2 (CHIA2:K:\, CHIA3:I:\), not encrypted on 2 (CHIA2:J:\, CHIA3:E:\); first backup 2026-10-19 03:00

folders remove#

folders remove <path>

Stops backing up a folder (Remove from Space Backup). The backups already made stay on the destinations until they age out. A path that is not in the list: exit 1.

$ spacebackup folders remove ~/Downloads
removed /home/anna/Downloads; files already backed up are kept

folders set#

folders set <path> [--frequency F] [--dest D] [--encrypt on|off] [--plain-dest IDS] [--encrypted-dest IDS] [--keep N|global]

Changes a folder's frequency, destinations, encryption or backups kept. At least one option is required (else exit 2). --keep N keeps N backups of the folder on each drive (1–999), --keep global goes back to the setting max-backups. A smaller number deletes nothing at once: the oldest dates of the folder go at its next backup, and the answer says how many. Its newest backup always stays. --encrypt is the form of every drive (their own choices are dropped); --plain-dest and --encrypted-dest change only the drives named; --dest never changes a form. Each drive keeps its own chain: switching a drive's form starts a new chain of backups of the folder there from its next run, the other drives go on linking; older dates stay as they were, and restore, history and browse read both forms. Exit 1: an unknown destination id; 2: a drive in both lists.

PS C:\> sbctl folders set D:\Projects --dest "selected:ANNA-PC:E:\|OFFICE-NAS:/srv/backup"
D:\Projects: frequency weekly, destinations selected:ANNA-PC:E:\|OFFICE-NAS:/srv/backup; next backup 2026-10-19 02:41
PS C:\> sbctl folders set D:\Projects --keep 3
D:\Projects: frequency weekly, destinations all, encrypted, keeps 3 backups on each drive; next backup 2026-11-01 02:41; 7 older backups of it go from each drive at its next backup

Destinations and paired computers#

A destination is a drive or folder that holds backups: on this computer, or on another computer of your company (a paired computer or peer). See Destinations.

dest list#

dest [list]

This computer's destinations and the paired computers' that it can use: id, computer, path, kind of drive, online, free space, speed, how it is reached. (destinations and dests are accepted for dest.)

The id is COMPUTER:path (ANNA-PC:E:\, OFFICE-NAS:/srv/backup); other commands take it.

JSON (array): id, machine, local (on this computer), path (as added), root (the folder that holds the backups, <path>/SpaceBackup), kind (internal, external or network; null when not known, for example a computer on an older version), online, free (bytes), writeMBps, media (SSD/HDD where known), status, reached (local, lan, direct or relayed), lastSeenUtc, lastCopyUtc, incompleteDate, lan (how other computers on the network open it, see dest lan), lanSetting, writing (the running backup is writing there now), fanOutBacklog, lastCheckUtc (last integrity check), damaged, speedRank (1 = fastest measured).

PS C:\> sbctl dest
ANNA-PC:E:\ (this PC), external drive: online, 812.40 GB free, 140 MB/s, local
  backups in E:\SpaceBackup; last copy 2026-10-18 02:31
OFFICE-NAS:/srv/backup, internal drive: online, 3120.55 GB free, 95 MB/s, lan
  backups in /srv/backup/SpaceBackup; last copy 2026-10-18 02:29

dest add#

dest add <path>

Adds a destination on this computer. Backups go into <path>\SpaceBackup (or into <path> itself if it is already named SpaceBackup). If the drive cannot make hard links, the answer says so: each date folder then takes the full size.

$ spacebackup dest add /media/anna/Backup
destination added: ANNA-LAPTOP:/media/anna/Backup (backups go to /media/anna/Backup/SpaceBackup)

dest remove#

dest remove <id|path>

Removes a destination of this computer. Its backups stay on the disk. A destination of another computer cannot be removed here (remove it on that computer, or dest forget it if that computer is gone).

PS C:\> sbctl dest remove E:\
destination removed: ANNA-PC:E:\; its backups stay in E:\SpaceBackup

dest forget#

dest forget <id>

Forgets a paired computer's destination that is gone (the computer was retired, the drive removed). If that computer is still online, the destination comes back with its next announcement.

$ spacebackup dest forget OLD-PC:/mnt/backup
forgot OLD-PC:/mnt/backup

dest lan#

dest lan <id|path> <\\PC\Share|auto|none>

How other computers on your network open a destination of this computer: the iPhone's About this photo gives a photo's path through it (for a backup that is not encrypted), to copy and open from a Windows computer. It is told to your other devices with the destination.

dest list shows it after the backup folder (--json: lan, and lanSetting: auto, none or set). Exit 1: not a network path, an unknown destination, or one of another computer (set it there).

$ spacebackup dest lan /srv/backup '\\OFFICE-NAS\SpaceBackup'
OFFICE-NAS:/srv/backup: on the LAN \\OFFICE-NAS\SpaceBackup

peers list#

peers [list]

The paired computers this one has seen: online, how reached and how fast, address, version, number of destinations, last seen.

JSON (array): name, inst (the install's id), address, online, viaRelay, reached, setupMs, lastSeenUtc, destinations, version.

$ spacebackup peers
OFFICE-NAS: online, lan 3 ms, at 192.168.1.20:47800, version 0.12.1, 1 destination(s), last seen 2026-10-18 14:20
ANNA-PC: online, relayed 48 ms, at 203.0.113.7:47800, version 0.12.1, 1 destination(s), last seen 2026-10-18 14:19

Settings#

settings get#

settings [get] [<key>]

Every setting with its value, or one (settings <key> is the same as settings get <key>). Aliases are accepted (see the table below). A key that does not exist: exit 2; a key of another platform: exit 1 (… is not a setting on windows). Secrets (relay-token) are shown only as set or not set.

JSON: an array of settings, or one: key, value, description, values (what it takes), readOnly, secret, restartNeeded.

PS C:\> sbctl settings
machine              = ANNA-PC
max-backups          = 30
frequency            = night
night-window         = 01:00-05:00
incoming             = 2
start-with-windows   = yes
wake                 = yes
name-first           = yes
scrub                = weekly
port                 = 47800  (restart to apply)
relay                = on
relay-status         = Not needed: all PCs are on this network  (read-only)
…

settings set#

settings set <key> <value> [--file F]

Changes a setting. The value is checked before it is sent (a bad value is exit 2 with the values allowed). A value with spaces may be given in quotes or as several words. - as the value reads it from stdin, and --file F from the first line of a file (for secrets such as relay-token, so they are not on the command line). The answer is <key> = <value>, plus (restart to apply: … restart) where needed.

$ spacebackup settings set night-window 00:30-05:30
night-window = 00:30-05:30

Settings keys#

The Settings window shows only what a user needs. The keys marked CLI only never appear in any window on any platform; they keep their defaults until changed here (or in config.json), a non-default value keeps working, and saving the Settings window never touches them. Support and agents change them with settings set.

KeyAlso acceptedValuesPlatformsWhat it is
machinemachine-name, computer-namea nameallThis computer's name: the folder its backups go into and its device name in the company. Letters, digits, -, _, ., up to 64. Setting it checks that no other active computer of the company has it (exit 7 with a free name otherwise), saves it and restarts Space Backup to use it. When there are backups under the old name it says "Backups from now on go into <NEW>; the earlier ones stay under <OLD>." See Choose a computer name.
max-backupsbackups-to-keep, keep1–999allBackups to keep on each drive: dated backups kept per computer on each destination (one per day). A folder may keep its own (folders set --keep). The newest backup of each listed folder is kept on top of these. Fewer: the older dates go at the next backup, and the answer says how many.
frequencynight, hourly, every:N, daily:HH:mm, weekly:<day>:HH:mm, manualallThe global frequency (folders set to global follow it). No once, weekly, monthly here.
night-windowwindowHH:mm-HH:mmallThe night window, for example 01:00-05:00.
incomingmax-incoming, incoming-backups1–16allOther computers backing up to this one at a time (more wait their turn).
start-with-windowsautostartyes/noWindowsStart Space Backup when you sign in to Windows.
wakewake-for-backupsyes/noWindowsWake the computer from sleep for scheduled backups.
name-firstcomputer-name-firstyes/noallSpaceBackup\<computer>\<date> (yes) or SpaceBackup\<date>\<computer> (no).
scrubcheck-backupsweekly, monthly, offallThe integrity check of this computer's destinations: re-read in the night window, damaged files repaired.
port1–65535allCLI only. TCP port for other computers, default 47800 (UDP 47801 is used for discovery). Restart to apply; status shows the port in use.
relayuse-relayon/offallConnect computers at other sites through Space Relay. On by default, no token needed. Setting it records your choice: updates never change it again.
relay-statusread-onlyall"Connected · 1.2 GB relayed this month", "Not needed: all PCs are on this network", "Can't reach the relay (offline?)", "Activation needed: …".
relay-balanceread-onlyallThe company's relay credit in one line, Free this month: 3.2 / 5 GB · Prepaid: 87 GB (read every 10 minutes, or by relay balance); empty when not signed in.
relay-activate-urlread-onlyallOnce this month's free relay traffic is used: the page that activates Space Relay for the company (https://spacebackup.net/account/relay/activate?group=<code>); else empty.
relay-addresshost:portallCLI only. The relay server, default relay.spacebackup.net:47900.
relay-tokena token, - (stdin), --file F, noneallCLI only. Only for pre-provisioned relay accounts; not needed otherwise. Never printed (settings get shows set / not set).
relay-fingerprintSHA-256 hex, or noneallCLI only. none (default): the relay's certificate is checked normally. A hex value pins a self-signed relay certificate.
cross-filesystemsyes/noLinux, macOSCLI only. Descend into other file systems mounted inside a backed-up folder. Default no.
lan-discoveryyes/noLinux, macOSFind other computers on the local network. no (tests): only through Space Relay. Restart to apply.
updatesautomatic, notify, offallAuto-update: install when idle, only tell, or never check. See Automatic updates.
update-channelstableallThe update channel (only stable for now).
txlog-days7–3650allDays the transaction log is kept (compressed after 7). Default 90.
rearrange-wait-days1–365allDays a phone's new drive waits for a computer that is off and may hold the date in the form it wants, before the phone is asked to send the date again. Default 7.
dead-run-hours1–720allHours without a write after which a date whose run is gone (the phone app was ended, a computer crashed) is closed by this computer: complete if nothing of the previous full date is missing, else partial. Default 2. See Partial dates.
album-put-max-gb1–1024allThe largest file, in GB, a phone may send into an album (its "From other apps" album, a public link's copy). Larger ones are refused and the phone says why. Default 4.
explorer-badgeread-onlyWindowsWhether the Explorer badge is installed (shell install).
company-keyread-onlyallThe company key's fingerprint (the key commands change it).

Company key#

The company key lets the computers of a company recognise and trust each other. A computer signed in to the company account gets it automatically from another computer of the company; the key commands are for computers that are not signed in, and for support. See The company key.

Warning: On a computer that is signed in, the company key comes from the account: key generate and key set refuse (this PC is signed in as <email>: its company key comes from the account).

settings auto-accept-company#

settings auto-accept-company [on|off]

The account setting Automatically accept albums shared by people in my company (on by default; kept by the account service, so it is the same on all your devices; the same as albums auto-accept). On: an album a colleague shares with you is in your albums at once. Off: it arrives as an invitation, to accept or decline (albums invitations); turning it on again does not accept the invitations already waiting. Without on/off it shows the setting. JSON: {autoAcceptCompany}.

$ spacebackup settings auto-accept-company off
off: albums shared by people in your company arrive as invitations, to accept or decline (albums invitations)

key fingerprint#

key [fingerprint]

The company key's fingerprint, the same on every computer that has the same key. The key itself is never printed except by key show. No key set: exit 1 no company key set.

JSON (for every key command): set, fingerprint, key (only from key show), copied.

$ spacebackup key
3F9A-C2D1

key generate#

key generate [--copy] [--force]

Makes a new company key and uses it, and prints its fingerprint. Give the same key to the other computers (key show here, key set there).

OptionMeaning
--copyalso copy the key to the clipboard (Windows; the Linux daemon has no clipboard: use key show)
--forcereplace a key that is already set. Without it, a set key is never replaced (exit 1): a new key separates this computer from the others.
PS C:\> sbctl key generate --copy
company key generated and set, fingerprint 7B21-04EE; copied to the clipboard
give the same key to the other PCs: sbctl key show here, sbctl key set <key> there

key set#

key set <key>|- [--file F]

Uses this company key (the same on every computer of the company). key set - reads it from stdin (a leading byte-order mark, which PowerShell sends when piping, is ignored), --file F from a file's first line, so the key is not in your shell history.

$ spacebackup key set --file /media/anna/USB/company-key.txt
company key set, fingerprint 7B21-04EE

key show#

key show

Prints the company key itself. Only this command ever prints it. No key set: exit 1.

PS C:\> sbctl key show
K7MXP-…

key clear#

key clear --force

Removes the company key: this computer stops working together with the others. --force is required (else exit 2 with an explanation).

$ spacebackup key clear --force
company key removed

History, browse and restore#

These commands find and bring back backed-up files. The Restore window uses them. See Restoring files.

history#

history [--folder P] [--dest ID] [--pc NAME]

The date folders on each destination: complete or not, files and size. Without --pc these are this computer's own backups and those of the paired computers that back up to its destinations (machine says whose). This computer's own date folders on the online paired computers holding them are listed too (each one is asked, 15 seconds at most; one that is offline shows the newest date this computer knows of).

OptionMeaning
--folder Ponly the dates that hold this backed-up folder
--dest IDonly this destination
--pc NAMEanother computer's date folders: one shared with you, or after an approved recover request, on this computer's destinations and on the online paired computers holding them. With this computer's own name: its own. Not shared and none here: exit 1 … are not shared with you …. Cannot be combined with --folder (exit 2).

JSON (array): dest, machine, date, path, complete, online, files, bytes, folders.

PS C:\> sbctl history --folder D:\Projects
ANNA-PC:E:\:
  2026-10-18 complete   146,402 files, 300.31 GB  [D:\Projects]
  2026-10-11 complete   145,870 files, 298.02 GB  [D:\Projects]
OFFICE-NAS:/srv/backup:
  2026-10-18 INCOMPLETE 98,114 files, 201.45 GB  [D:\Projects]

browse#

browse [<path>] [--date YYYY-MM-DD|latest] [--from HOST] [--pc NAME]

What is directly inside a folder in one backup: name, folder or file, size, modified. The Restore window's file list.

OptionMeaning
--datethat date's backup, or latest (default)
--from HOSTread only from that paired computer
--pc NAMEanother computer's backups (see above)

No backup of that date holds the folder: exit 1. Without a path and without --pc: exit 2.

JSON: path, date, complete, from (this PC or the computer it was read from), encrypted, items (each: name, path, folder, size, modifiedUtc), unreadable (entries whose long encrypted name could not be shown when read from another computer: restore the folder to get them).

$ spacebackup browse ~/Documents/Reports --date 2026-10-17
/home/anna/Documents/Reports in the backup of 2026-10-17, from this PC (encrypted): 1 folder(s), 2 file(s)
  folder     2026-09-30 11:02  2025/
  1.2 MB     2026-10-16 17:44  q3.xlsx
  310.4 KB   2026-10-02 09:15  plan.docx

restore#

restore <path> [--date YYYY-MM-DD|latest] [--to DIR] [--overwrite|--keep-both|--skip] [--pc NAME] [--from HOST]

Copies a backup back.

<path> is either:

Where it goes: by default back where it was backed up from (in place). --to DIR restores into that folder instead: a file keeps its name, a folder's contents go into DIR.

When a file is already there it is skipped (--skip, the default), unless you give --overwrite, or --keep-both, which keeps both under a new name, report (restored 2026-10-05).docx. Only one of the three may be given (exit 2).

Every restored file is checked against its date folder's manifest (the list of files and their hashes) and read back. On Linux and macOS, names, permissions, modification times (to the nanosecond) and symbolic links come back as they were.

OptionMeaning
--datethat date's backup, or latest (default)
--to DIRthe folder to restore into (required with --pc for another computer)
--overwrite / --keep-both / --skipwhat to do with a file that is already there (default --skip)
--pc NAMEanother computer's backups: plain ones directly, encrypted ones once recover request <NAME> was approved or that computer's backups are shared with you. <path> is the path on that computer. When its backups are not on this computer's destinations (or --from names a computer), they are read from the paired computers that hold them, with a ticket from the account service; the item is first copied into this computer's data folder (restore-staging, removed afterwards; it needs that much free space for a moment) and restored from there with the usual checks. With this computer's own name, the same as no --pc (--to optional).
--from HOSTread only from that paired computer

Exit codes: 0 all restored; 4 some files failed and others were restored, or it was stopped with cancel --restore; 1 nothing restored (not found, not shared with you: … are not shared with you and no restore of them was approved for this PC …). The restore runs inside the app, so the app must be running (exit 3 otherwise).

JSON: from, to, date, files, bytes, verified, overwritten, keptBoth, skippedExisting, damaged, incomplete (from a date folder whose backup did not complete), existing (files skipped because they were there), errors, cancelled.

PS C:\> sbctl restore C:\Users\anna\Documents\Reports --date 2026-10-17 --to C:\Restored --keep-both
restored 41 file(s), 18.4 MB from E:\SpaceBackup\ANNA-PC\2026-10-17\C\Users\anna\Documents\Reports (2026-10-17) to C:\Restored; 41 checked against the manifest, 2 kept both

Another computer's backups, shared with you:

$ spacebackup restore 'C:\Users\bob\Desktop\budget.xlsx' --pc BOB-PC --to ~/FromBob
Restored 1 file(s), 0.3 MB from OFFICE-NAS (2026-10-18) to /home/anna/FromBob

Account and company#

Signing in, the company, and its members. Most of these need this computer to be signed in; member management needs the company's owner or an admin. See Sign in by email link, Join a company and Members.

account status#

account [status]

Who this computer is signed in as, its company and role, the company key and the encryption state, a sign-in in progress, restore requests, and devices waiting for the company key.

encryption is ready (folders set to Encrypt are encrypted), waiting (for the company key; backed up as plain files until then) or off (not signed in).

JSON fields: signedIn, email, company, companyId, companyDomain, autoJoin, role (owner, admin, member), memberStatus (active, pending = an admin has to approve, invite-needed = a personal email with no invitation), deviceId, keyVersion, keyFingerprint, encryption, dataKeyId, signIn (none, waiting, signed-in, failed), signInEmail, signInError, signInExpiresUtc, removed (this computer was removed from the company), lastSyncUtc, lastError, accountUrl, keyRecoveryId, keyRecoveryReleaseUtc, requests (restore requests: id, pc, state = waiting/approved/denied, createdUtc), canRestore (computers whose backups this one can restore), machineName, machineNameProblem (taken, invalid or null), suggestedMachineName, hasBackups, keyWait (this computer waits for the company key: state, holders, approvers, mailed, approverIsMe, adminUrl, text), keyWaitingDevices (owner/admin: other devices waiting: id, name, email, text).

$ spacebackup account
Signed in as anna@acme.com
Company:     Acme (admin)
Auto-join:   off: people with an @acme.com email need an invitation
Company key: version 3, fingerprint 3F9A-C2D1
Waiting:     BOB-LAPTOP is waiting for the company key (bob@acme.com): spacebackup devices approve BOB-LAPTOP
Encryption:  ready (data key d_4f2a…): folders set to Encrypt are encrypted

account signin#

account signin <email> [--wait] [--code N]

Passwordless sign-in: a mail goes to <email> with a link and a 6-digit code, valid 15 minutes and once. The first computer of a company creates it (and its company key); further computers get the company key end to end from a computer that has it.

OptionMeaning
--waitwait until the link is clicked (up to 16 minutes)
--code NWindows: pass the code right after starting (the same as account code N). Prefer account code.

Exit 1 when the sign-in failed.

$ spacebackup account signin anna@acme.com < /dev/null
A sign-in mail went to anna@acme.com: click its link, or give its code: spacebackup account code <6 digits>

account code#

account code <6 digits>

The code from the sign-in mail. A wrong code: exit 1 with the attempts left. Signed in, but the company already has another computer of this name: exit 7 (see account join).

PS C:\> sbctl account code 482913
Signed in as anna@acme.com
Company:     Acme (member)
Company key: version 3, fingerprint 3F9A-C2D1
Encryption:  ready (data key d_4f2a…): folders set to Encrypt are encrypted

account join#

account join [--create]

Joins the company now (the app also tries every minute by itself), for example after an admin invited your email.

$ spacebackup account join
Another computer in your company is already called ANNA-LAPTOP. Choose a name for this computer:
  spacebackup settings set machine-name ANNA-LAPTOP-2
$ echo $?
7

account rename#

account rename "<name>"

Renames your company (owner or admin; 1–100 characters, plain text). A member gets exit 1 only the company's owner or an admin may do this.

PS C:\> sbctl account rename "Acme Inc."
Your company is now called Acme Inc.

account name#

account name [set "<name>" | clear]

Your display name in your company, shown next to your email in albums and in the member and device lists, only inside the company. set: "first last": the name is split at its first space into a first and a last name, each up to 40 characters, plain text (a part too long or with control characters: exit 2, first name is too long (at most 40 characters)). clear: no name. No argument: shows it. An owner or admin can set anyone's on the admin page.

JSON: name ("" = none).

$ spacebackup account name set "Anna Kowalski"
Your name is now Anna Kowalski

account picture#

account picture [--set <file.jpg|file.png> | --remove] [--of <email>] [--to <file>]

Your own picture, shown next to your name to you and your colleagues (Settings › Account › Your name: **Choose a photo…, Remove photo**). --set: a JPEG or PNG of at most 512 KB (a square is best; the window makes one from any photo). It is kept on this computer at once and with your account; when the account service can't be reached it stays on this computer and goes up at the next look (the text says kept on this computer; not yet with your account). --remove: no picture. No option: shows it. --to <file>: also writes it to a file; --of <email> --to <file>: a colleague's picture.

Exit 2: not a JPEG or PNG, larger than 512 KB, --of without --to. Exit 1: <email> has no picture.

JSON: email, has, type, bytes, version (null: on this computer only), onlyHere, problem, file.

$ spacebackup account picture --set ~/me.jpg
Your picture is set

account invite#

account invite <email> [--role member|admin]

Invites anyone to your company (owner or admin; the admin page's Invite): a personal address or one at another domain too. --role defaults to member. The invitation is mailed; the person joins when they sign in to Space Backup with exactly this address. Someone at your company's domain who is waiting for approval is approved by inviting them.

Exit 1: already a member (<email> is already a member), in another company that holds anything (<email> belongs to another company), or you are not owner or admin.

JSON: the member (see account members).

PS C:\> sbctl account invite bob@acme.com --role admin
Invited bob@acme.com as admin: the invitation is mailed; they join when they sign in to Space Backup with exactly this address

account members#

account members [list]
account members approve|deny|remove <email>
account members role <email> member|admin

Your company's members as the admin page lists them (owner or admin): pending first, then the owner, admins, members.

FormWhat it does
list (default)email, role, status (active, invited, pending), name, who invited them
approve <email> / deny <email>a pending join (someone at the company's domain, with auto-join off); approved ones are mailed
remove <email>removes a member and their devices: sessions ended, shares stopped, the company key replaced. Never the owner.
role <email> member|adminmakes an active or invited member an admin or a member. Never the owner.

An email not in the list: exit 1. Bad form: exit 2.

JSON: list gives an array of members; the others give the member after the change (status: "removed" after remove or deny). A member: email, name ("" = none), role (owner, admin, member), status (active, invited, pending, removed), invitedBy, sinceUtc.

$ spacebackup account members
carol@acme.com                   member  pending
anna@acme.com                    owner   active   Anna Kowalski
bob@acme.com                     admin   invited  (invited by anna@acme.com)

account auto-join#

account auto-join on|off

Lets anyone with an email at your company's domain join without an invitation (on), or not (owner or admin). Only for a company with a domain (else exit 1 auto-join needs a company domain; this company has none). account status shows Auto-join: for such a company.

PS C:\> sbctl account auto-join on
Anyone with an @acme.com email may now join Acme

account web#

account web [--admin] [--open]

The address of your account page on the web: https://spacebackup.net/account/ (Your account on the web), or with --admin the company admin page https://spacebackup.net/account/admin (members, invitations, devices, approvals, sharing, relay credit; Manage your company on the web and the tray's Company admin page…). --open also opens it in your browser.

JSON: url, admin, opened (null without --open).

$ spacebackup account web --admin --open
Opened in your browser: https://spacebackup.net/account/admin

account signout#

account signout

Forgets the sign-in on this computer. Backups go on with the keys it has; sign in again to manage devices or restores.

PS C:\> sbctl account signout
Signed out on this PC (backups go on with the keys it has)

account url#

account url [URL|default]

The account service this computer uses; default https://spacebackup.net/account. default goes back to it. Only for testing or a private service. JSON: url.

$ spacebackup account url
https://spacebackup.net/account

account recover-key#

account recover-key [--cancel]

For admins, when every computer of the company was lost: asks for the company key's recovery copy. It is released after 24 hours unless an admin cancels; every admin gets a mail. --cancel cancels a recovery asked for on this computer. See Company key recovery.

PS C:\> sbctl account recover-key
Asked for the company key's recovery copy: released 10/19/2026 3:12 PM unless an admin cancels (every admin got a mail)

Devices#

devices list#

devices [list]

The company's computers and phones: name, owner's email, last seen (or removed), system, version, and its id. This computer is marked (this PC).

JSON (array): id, name, email, os, version, lastSeenUtc, removed, keyVersion, thisPc.

$ spacebackup devices
ANNA-LAPTOP          anna@acme.com                seen 10/18/2026 2:20 PM  linux 0.12.1  (this PC)  dev_8c1e…
ANNA-PC              anna@acme.com                seen 10/18/2026 2:19 PM  windows 0.12.1  dev_27ab…
Annas-iPhone         anna@acme.com                seen 10/18/2026 1:05 PM  ios 2.4  dev_f09d…

devices approve#

devices approve <id|name>

Owner or admin: gives a device that is waiting for the company key the key, when no device that holds it handed it over within 2 minutes (account status lists them as <device> is waiting for the company key). Never this computer: a waiting computer is approved from the mailed link, the admin page or another device. See A device waiting for the company key.

PS C:\> sbctl devices approve BOB-LAPTOP
Approved BOB-LAPTOP (bob@acme.com): it gets the company key with its next sync (within a minute)

devices remove#

devices remove <id|name>

Admins: removes a computer from the company. The company key is replaced on the other computers (offline ones get it when they come back).

$ spacebackup devices remove OLD-PC
Removed OLD-PC from the company; the company key is rotated on the other PCs (offline ones get it when they come back)

Restoring another computer#

recover list#

recover [list]

Other computers whose backups you may restore here, and the state of each: available (ask for it with recover request), waiting (asked; the owner or an admin has to approve), approved (restorable here), denied, or shared (shared with you: restorable without asking).

JSON (array): deviceId, pc, email, removed, state, sinceUtc (for shared).

$ spacebackup recover
BOB-PC               bob@acme.com                 shared with you: spacebackup restore <path> --pc BOB-PC --to <dir>
OLD-PC               anna@acme.com                spacebackup recover request OLD-PC

recover request#

recover request <PC>

Asks to restore another computer's backups on this one. The company owner and admins get a mail; once one approves (by mail or on the admin page), restore <path> --pc <PC> --to <dir> works here. See Approving a restore of another computer.

JSON: id, pc, state, createdUtc.

PS C:\> sbctl recover request OLD-PC
Asked to restore OLD-PC's backups on this PC. The company owner and admins got a mail; once one approves, `sbctl restore <path> --pc OLD-PC --to <dir>` works here.

Sharing a device's backups#

Sharing lets a person of your company view and restore a copy of a device's backups, read-only, on all their devices, without an approval for each restore. See Sharing a device's backups.

share list#

share [list]

Who this computer's backups (admins: every device's) are shared with, then Shared with me: the devices shared with you.

JSON: shares and sharedWithMe, each a list of shares: id, pc (the shared device), ownerEmail, recipientEmail, sharedBy, sinceUtc, thisPc.

$ spacebackup share
Shared:
  ANNA-LAPTOP          with bob@acme.com                 since 10/12/2026
Shared with me:
  BOB-PC               bob@acme.com                 since 10/14/2026   (spacebackup restore <path> --pc BOB-PC --to <dir>)

share add#

share add <email> [--pc <name>]

Shares this computer's backups (or --pc's: one of your own devices; owners and admins any device) with a person of your company.

JSON: the share.

PS C:\> sbctl share add bob@acme.com
ANNA-PC's backups are shared with bob@acme.com: they can view and restore a copy, read-only, on all their devices.

share remove#

share remove <email> [--pc <name>]

Stops sharing. Backups made before stay readable to the person who already had access to them; new ones are not shared. It also removes a device shared with you: share remove <your email> --pc <name>.

$ spacebackup share remove bob@acme.com
Stopped sharing ANNA-LAPTOP's backups with bob@acme.com. Backups made before today stay readable to bob@acme.com, who already had access to them. New backups are not shared.

Albums#

Albums are collections of photos and videos kept on chosen destinations of your company's computers. You can share an album with people of your company, or invite someone outside it as a guest. See Albums, Sharing an album and Guests from outside the company.

An <album> argument is the album's name or its id (as albums list --json gives it). A <PC> is a computer's name as devices list shows it.

albums list#

albums [list]

Your albums and the albums shared with you: owner, number of items, where they are kept, who they are shared with, and whether members can add. Albums inside albums are listed under the album they are in, indented, with N album(s) in it on the parent; an album shared with you whose parent is not is listed at the top.

JSON (array): id, name, owner, mine, items, where (PC:destination each), members (who it is shared with, for its owner), membersCanAdd, parent (the album it is in, or null at the top level), children (the albums directly in it that you see).

$ spacebackup albums
Chicago trip             mine                              128 item(s)   on OFFICE-NAS:/srv/backup, ANNA-PC:E:\   shared with bob@acme.com
Team offsite             shared by bob@acme.com             42 item(s)   on BOB-PC:D:\   members can add

albums show#

albums show <album> [--from <PC>]

An album's items, read from this computer's destinations when it keeps the album, else (or with --from) from a computer keeping it, with an album ticket the account service gives the owner's devices and the members it is shared with (others: exit 1). An album shared with you that you turned off is not read: exit 1, "The album <name> is turned off: turn it on first (albums show <id> on, or Turn on in Albums, Shared with me)."

JSON: the album's album.json: v, id, name, owner, updated, items (each: id, source, files, thumb, kind, created, place, added, size, addedBy, caption), removed.

PS C:\> sbctl albums show "Chicago trip"
Chicago trip (mine), 128 item(s), read from this PC:
  IMG_0412.HEIC                            photo  10/3/2026 4:12 PM     2.4 MB  from Annas-iPhone
  IMG_0413.MOV                             video  10/3/2026 4:15 PM    48.1 MB  from Annas-iPhone
  …

albums restore#

albums restore <album> --to <dir> [--from <PC>]

Saves a copy of an album's photos and videos into <dir>. Files already there with the same size are skipped. Read as for albums show; an album you turned off is refused the same way (exit 1, turn it on first), as are albums guest-restore and albums clone from it. Exit 4 when some files failed, 1 when none were saved.

JSON: album, from, to, files, skipped, bytes, errors.

$ spacebackup albums restore "Chicago trip" --to ~/Pictures/Chicago
Saved 128 file(s), 1824.6 MB of the album Chicago trip from this PC to /home/anna/Pictures/Chicago

albums create#

albums create <name>

Makes a new album of yours. Then choose where it is kept with albums dest.

$ spacebackup albums create "Chicago trip"
Created the album Chicago trip. Choose where it is kept: spacebackup albums dest "Chicago trip" <PC>:<destination>

albums import#

albums import <folder> [--dest <PC>:<destination>]... [--detach]

A folder as albums (what dragging a folder onto the app does): every folder that holds photos or videos directly, the folder itself and every folder in it, all the way down, becomes an album named as its path from the folder you drag, the folder names joined by " - " (Trips, Trips - Iceland, Trips - Iceland - Day 2), with just that folder's photos and videos. A subfolder's photos are not in the album of the folder around it: the subfolder gets its own album the same way. Albums are never put inside albums; they are all side by side. A folder with no photo or video of its own makes no album (listed as skipped; the folders in it are still looked into), and hidden files and folders (names starting with a dot) and other files (documents, music) are left out. Photos and videos are told by their content, not their names.

Exit 1 when the folder has no photo or video, or nothing could be imported; 4 when some files failed (each listed). JSON (AlbumImportInfo): job, folder, state (running, done, failed), started, ended, of, done, added, already, albums (each id, name, folders, created, files), failed, skipped, error.

$ spacebackup albums import ~/Pictures/Trips
Imported /home/anna/Pictures/Trips; 3 album(s) made, 0 reused; 212 photos and videos added, 0 already there
  made: Trips, Trips - 2026, Trips - 2026 - Las Vegas
  skipped (no photo or video of its own): Documents
$ spacebackup albums import ~/Pictures/Trips
Imported /home/anna/Pictures/Trips; 0 album(s) made, 3 reused; 0 photos and videos added, 212 already there
  reused: Trips, 2026, Las Vegas

albums put#

albums put <file or folder>... [--album <album>] [--dest <PC>:<destination>]... [--detach]

Photos and videos of this computer into one album of yours, kept as they are: what dropping files on the window does. A folder brings its photos and videos and every folder's below it, all into the one album; other files are skipped (by content). --album names the album (yours only: an album shared with you, or a public one, is refused); without it they go into From Other Apps, made when it isn't there (on the --dest drives, default every destination of dest list). The same file put again is already there. A job as albums import (--detach, albums imports); JSON AlbumImportInfo with into, the album's name. Exit 1 when there is nothing to add or the album is not yours; 4 when some files failed.

$ spacebackup albums put ~/Downloads/IMG_2041.HEIC ~/Pictures/Party
Added 38 photos and videos to From Other Apps

albums imports#

albums imports [--job <job id>]

The folder imports this computer runs or ran (albums import), newest first: job, state, files done of all, the folder. With --job, that one as albums import answers it. Ended ones are kept 24 hours (until the computer restarts).

albums dest#

albums dest <album> <PC>:<destination>...

Where the album is kept: destinations of the company's computers, by path or id (up to 8). Replaces the list. Only the album's owner. A computer must be paired with this one so its destinations are known here.

From 0.16.33 it also moves the album, as the iPhone does (the app's Kept on page does exactly this):

PS C:\> sbctl albums dest "Chicago trip" OFFICE-NAS:/srv/backup ANNA-PC:E:\
The album Chicago trip is kept on OFFICE-NAS:/srv/backup, ANNA-PC:E:\
Filling ANNA-PC:E:\ from OFFICE-NAS: 397 photos and videos (spacebackup albums job "Chicago trip" --on OFFICE-NAS --job job_3f…)

Exit 4 when a dropped drive's copy could not be deleted (its computer is off and no other computer keeping the album could pass it on): it stays there, no longer part of the album. --json (AlbumDestInfo): {album, added, dropped, fillOn, job, of, fillLater, removed, left}.

albums share#

albums share <album> <email>

Shares your album with a person: read-only for a person of your company (they can view it and save a copy). Someone outside the company is invited instead, by mail and on their phone; the invitation lasts 30 days, and once they accept they are a guest of the album (view and save a copy only).

$ spacebackup albums share "Chicago trip" bob@acme.com
The album Chicago trip is shared with bob@acme.com: they can view it and save a copy (read-only).

albums unshare#

albums unshare <album> <email>

Stops sharing an album with a person, withdraws an invitation, or removes a guest. albums unshare <album> <your email> leaves an album shared with you. The computers holding it stop serving it to them within 5 minutes.

$ spacebackup albums unshare "Chicago trip" bob@acme.com
Stopped sharing the album Chicago trip with bob@acme.com (the PCs holding it stop serving it to them within 5 minutes).

albums members-can-add#

albums members-can-add <album> on|off

The owner lets the people the album is shared with add to it (on): their devices may albums add their own backed-up files and albums clone into it, and albums remove only what they added. off: no more adds or removes by members; what they added stays. Deleting the album and choosing where it is kept stay the owner's. Not the owner: exit 1.

JSON: the album row (with membersCanAdd).

PS C:\> sbctl albums members-can-add "Team offsite" on
The people the album Team offsite is shared with can now add to it (and remove what they added).

albums add#

albums add <album> <path>... --on <PC> [--date YYYY-MM-DD]

Adds this computer's backed-up files (a file, or a folder's files) to your album, or to one shared with you whose owner lets members add. The computer holding this computer's backups (--on, required) copies them into the album, decrypted with this computer's data key lent for that request only (never stored there), and sends them to the album's other computers. --date: from that date's backup.

A computer keeping the album that is off gets the items when it is back: they wait on --on as transfer jobs (exit 0, N item(s) wait on <PC> until it is back). Exit 4 when some items went and some did not, 1 when none did.

$ spacebackup albums add "Chicago trip" ~/Pictures/Chicago/IMG_2201.jpg --on OFFICE-NAS
Added 1 item(s) to the album Chicago trip on OFFICE-NAS and ANNA-PC

albums remove#

albums remove <album> <path>... --on <PC>

Takes this computer's files out of the album, on every computer keeping it. A member removes only what they added; the others are listed as <id>: you can remove only what you added (exit 4 when some went, 1 when none).

$ spacebackup albums remove "Chicago trip" ~/Pictures/Chicago/IMG_2201.jpg --on OFFICE-NAS
Removed 1 item(s) from the album Chicago trip

albums clone#

albums clone <album> <from album> --on <PC> [--drive <destination>] [--id <item id>]...

Copies the items of another album (yours, or shared with you) into your album (or one whose owner lets members add), computer to computer: --on is a computer holding <from album>, read from --drive (its id or path; default its first drive holding it). On that computer's own drives of the album the items are hard-linked when on the same volume, else copied, and they are sent to the album's other computers (a computer that is off: transfer jobs on --on, exit 0). Nothing passes through this computer and no key is lent (albums are stored plain).

--id (repeatable): only those items (ids as albums show --json gives them; an id not in it counts as a failure). Each item keeps its source, id, kind and dates; one already in the album is counted as already there. A --on computer on an older version: exit 1 <PC> is an older version without album.clone. Exit 0 all, 4 some failed, 1 none.

JSON: album, from, on, albumVersion, added, already, failed, pushed (other computers that did not get the items yet).

PS C:\> sbctl albums clone "Best of 2026" "Chicago trip" --on OFFICE-NAS --id IMG_0412 --id IMG_0413
Cloned 2 item(s) of the album Chicago trip into the album Best of 2026 on OFFICE-NAS and ANNA-PC

albums caption#

albums caption <album> <item id> "text"
albums caption <album> <item id> --clear

Sets or clears the caption of an album item: plain text, at most 2,000 characters, newlines allowed, no other control characters. A caption may begin with --; only --clear itself is the option. See Captions.

Exit 1: the item is not in the album, is not yours to caption (refused: You can caption only what you added), or no computer keeping the album can be reached. 2: bad caption or usage. 4: set, but some computer failed (listed).

JSON: album, id, source, caption (null when cleared), captioned (copies changed), done (computers that took it), pushed (those that did not yet).

Note: Captions of your phone's own backups (outside albums) are set on the phone only. The Photos viewer's Save caption and Clear caption run this command.

$ spacebackup albums caption "Chicago trip" IMG_0412 "Cloud Gate at sunset"
Set the caption of IMG_0412 in the album Chicago trip on OFFICE-NAS, ANNA-PC

albums delete#

albums delete <album>

Deletes your album and its copies on the computers. A copy that could not be deleted is listed (it stays there; exit 4).

PS C:\> sbctl albums delete "Old album"
Deleted the album Old album

albums status#

albums status <album> --on <PC>

Where the album is, drive by drive, as that computer (the one adding to it) knows it: done (with its item count for that computer's own drives), waiting for <PC> (transfer jobs kept there, and the last reason), failed, missing, offline.

JSON (array): pc, dest, state, items, waiting, error, drive.

$ spacebackup albums status "Chicago trip" --on OFFICE-NAS
OFFICE-NAS:/srv/backup                   done, 128 item(s)
ANNA-PC:E:\                              waiting for ANNA-PC: 3 transfer(s) kept on OFFICE-NAS (offline)

albums invitations#

albums invitations

Invitations to you to albums of other companies, and of your own when settings auto-accept-company is off: the waiting ones, then the declined ones, each with the album, who invited you and since when. None expires.

JSON (array): id, album, albumName, fromEmail, fromName, company, created, state (pending or declined), sameCompany, decided.

$ spacebackup albums invitations
Wedding                  from Dana Lee <dana@example.org> (Lee Studio), waiting since 10/30/2026
Picnic                   from Bob Smith <bob@acme.com>, declined since 10/29/2026
Accept one with: albums accept <album> (a declined one too)

albums accept#

albums accept <invitation or album> [--trust-sender]

Accepts an invitation, a waiting or a declined one (by its id, or the album's name; a waiting one first when both have that name): an album of your company is in your albums at once; one of another company makes you its guest, to view it and save a copy. --trust-sender (people outside your company only): albums that person shares with you later are accepted at once. Not found: exit 1; two invitations with that album name: exit 2 (give the id from albums --json invitations).

PS C:\> sbctl albums accept Wedding
You can now view the album Wedding from Dana Lee and save a copy (sbctl albums guest-restore "Wedding" --to <folder>).

albums decline#

albums decline <invitation or album>

Declines an invitation. It stays listed as declined, and you can still accept it later.

$ spacebackup albums decline Wedding
Declined the invitation to the album Wedding from Dana Lee. It stays under Declined: you can still accept it (albums accept inv_8f2c).

albums show <album> on|off#

albums show <album> on|off
albums turn-on <album>
albums turn-off <album>

Hides or shows an album for you alone: one shared with you (of your company, or one you are a guest of), or your own (iOS requests #85, #87; POST /account/api/albums/{id}/show {on}). Hidden, it leaves Photos, Recent and Albums on all your devices and nothing of it is downloaded or cached; the desktop app lists it in Settings › Hidden albums with Show (a shared one also under Shared with me). A shared one: computers neither list nor open it, you get no notifications about it, and you stay in the album. Your own: it stays shared and backed up, its members see no change, the computers keeping it still serve it (to you too: albums show, albums restore and its tickets work), and its faces still count for your People. albums list shows it as "turned off" (--json shown: false, mine: true for your own). The desktop app's Hide album (an album's right-click and its page) does the same.

$ spacebackup albums show "Old party" off
The album Old party is hidden: it no longer shows in Photos, Recent and Albums on your devices, nothing of it is downloaded, and you get no notifications about it. Show it again with: albums show al_3k9 on (Settings, Hidden albums)
$ spacebackup albums show "Trip 2025" off
The album Trip 2025 is hidden: it no longer shows in Photos, Recent and Albums on your devices, nothing of it is downloaded; it stays shared and backed up. Show it again with: albums show al_7q2 on (Settings, Hidden albums)
$ spacebackup albums show "Old party" on
The album Old party shows again in Photos, Recent and Albums.

albums guest#

albums guest

The albums of other companies you are a guest of: owner, company, items, the computers keeping it.

JSON (array): id, name, owner, ownerName, company, items, pcs.

$ spacebackup albums guest
Wedding                  by Dana Lee (Lee Studio), 312 item(s), on STUDIO-NAS

albums guest-restore#

albums guest-restore <album> --to <dir>

Saves a copy of an album of another company you are a guest of, read from its computer through Space Relay with this computer's registered key and the album's ticket (view and save only). Exit 1 when the album is not found or no computer of it can be reached; 4 when some files failed.

JSON: as albums restore.

$ spacebackup albums guest-restore Wedding --to ~/Pictures/Wedding
Saved 312 file(s), 4120.3 MB of the album Wedding from STUDIO-NAS to /home/anna/Pictures/Wedding

Photos#

The photos commands are what the Photos window on a computer shows and does: the photos and videos backed up from your phones (and those shared with you), and your albums. See The Photos window on a computer. photos alone is photos list.

An item id looks like d~Annas-iPhone~0123456789abcdef (an item of a device's backups) or a~<album id>~<device>~<item id> (an item of an album); photos list prints them.

photos open#

photos open

Starts this computer's local viewer server (on 127.0.0.1, a random port) if it is not running, and prints its address with this session's secret; the app's Photos… window loads it. The secret changes when the app restarts and when you sign out.

JSON: url, port, secret.

$ spacebackup --json photos open
{"url":"http://127.0.0.1:51734/?s=k3JX…","port":51734,"secret":"k3JX…"}

photos sources#

photos sources

The devices whose photos this computer can show (yours, and those shared with you) and the albums you see: what the viewer's All, Albums and Shared with me list. Each has a key: d:<device> or a:<album id>, used by photos list --source.

JSON (array): key, name, kind (device or album), mine, owner, items, problem (why it cannot be read, in plain words: encrypted and no key here, its computer offline; null when it can), canAdd.

$ spacebackup photos sources
Annas-iPhone                 device  yours                              d:Annas-iPhone
Chicago trip                 album   yours                              a:alb_7c21…
Bobs-iPhone                  device  shared by bob@acme.com             d:Bobs-iPhone

photos list#

photos list [--source KEY]... [--type T] [--search TEXT] [--from YYYY-MM-DD] [--to YYYY-MM-DD] [--archived | --deleted] [--limit N]

Photos and videos, newest first: id, kind, date taken, place.

OptionMeaning
--source KEY(repeatable) only these sources (d:<device>, a:<album id>); default all of your own
--type Tphoto, video, live, favorite, or a media type: selfie, portrait, screenshot, screenRecording, slomo, timelapse, burst, raw, spatial, cinematic, panorama
--search TEXTa place or a date: Chicago, "Oct 2026", 2026-10-13
--from, --totaken between these dates
--archivedthe Archived folder's items instead (archived on the iPhone)
--deletedthe Deleted folder's items instead (deleted in the iPhone's Photos tab); not with --archived
--limit Nat most N items

JSON (array, the viewer's items): id, source, device, itemId, kind (photo, video, live), created, modified, uploaded, w, h, duration, lat, lon, favorite, types, caption, addedBy, files, edited, thumb, archived, deleted, size, place.

$ spacebackup photos list --search Chicago --limit 2
d~Annas-iPhone~0123456789abcdef              photo 2026-10-03 16:12 Chicago, Illinois, United States
d~Annas-iPhone~fedcba9876543210              live  2026-10-03 15:58 Chicago, Illinois, United States
2 item(s)

photos map#

photos map [--whose all|mine|shared] [--search TEXT] [--limit N]

The photo map (Places › Map): every photo and video with a location, as spots joined by place name (else by about a kilometre), most first: how many, the middle, the first and last day, the place.

OptionMeaning
--whosethe map's switch: all (default), mine (your own devices and albums) or shared (shared with you)
--search TEXTonly what the search box would keep
--limit Nat most N spots

JSON: whose, located (how many have a location), spots: place, lat, lon, items, newest (the pin's picture, an id for photos show), from, to. A pin's photos: photos list --search "<place>". Exit 0 also when none has a location; 2: a bad --whose.

$ spacebackup photos map --whose shared
    12   43.64270  -79.38710  2026-09-30..2026-10-07  Toronto, Ontario
12 with a location, 1 spot(s)

photos show#

photos show <id>

One item: kind, date taken, place, device, size in pixels or length, files, caption (the viewer's Info). JSON: the item, as in photos list.

PS C:\> sbctl photos show d~Annas-iPhone~0123456789abcdef
Photo taken Saturday, October 3, 2026 4:12 PM in Chicago, Illinois, United States
From Annas-iPhone, 4032 × 3024
Files: IMG_0412.HEIC
Caption: Cloud Gate at sunset

photos save#

photos save <id>... --to <dir> [--originals]

Save to a folder: the originals (a Live Photo: both files; an edited item: its edit too), with the date taken as the file time. A file already there with the same size is skipped. --originals: one file each, as dragging photos out of the window gives: the edited version where there is one, else the original (a Live Photo's picture). Exit 4 when some failed, 1 when none were saved.

JSON (for save, restore, preview): to, items, files, bytes, skipped, errors.

$ spacebackup photos save d~Annas-iPhone~0123456789abcdef --to ~/Desktop
Saved 1 item(s), 1 file(s) (2.4 MB) to /home/anna/Desktop

photos preview#

photos preview <id> --to <dir>

Saves the picture the viewer shows, as JPEG (HEIC/HEIF and RAW converted), into <dir>.

PS C:\> sbctl photos preview d~Annas-iPhone~0123456789abcdef --to C:\Temp
Saved C:\Temp\IMG_0412.jpg

photos restore#

photos restore <id>... [--to <dir>]

Restore: the originals back to their place, <dir>/<device>/<year>/<month>/, with the date taken as the file time; already there: skipped. The default <dir> is Pictures/Space Backup in your home folder.

$ spacebackup photos restore d~Annas-iPhone~0123456789abcdef
Restored 1 item(s), 1 file(s) (2.4 MB) to /home/anna/Pictures/Space Backup

photos add#

photos add <album> <id>...

Add to album (album by name or id). Items of an album are cloned into it (as albums clone); items of a device's backups can be added only from that device, because the device lends its own key (the viewer says so). Exit 4 when some were added and some not.

JSON: a command result.

$ spacebackup --json photos add "Best of 2026" a~alb_7c21~Annas-iPhone~IMG_0412
{"ok":true,"partial":false,"message":"Cloned 1 item(s) of the album Chicago trip into the album Best of 2026 on OFFICE-NAS","error":null}

photos new-album#

photos new-album <name> [<id>...] [--dest <PC>:<destination>]...

New album: albums create, kept on the --dest drives (the window's Where it goes; default every destination of dest list, as photos copy-album), then Add to album with the items given (none: an empty album). If the album was made but placing or adding failed, exit 4.

$ spacebackup photos new-album "Best of 2026" a~alb_7c21~Annas-iPhone~IMG_0412
Made the album Best of 2026. Cloned 1 item(s) of the album Chicago trip into the album Best of 2026 on OFFICE-NAS

photos assistant#

photos assistant <words> [--langs ru,en]

The assistant box: ask in plain words. The account service plans the answer; the command prints its sentence and what it shows (how many items match), or makes the album it was asked for. See The assistant.

JSON: say, show (what to show: scope, place, dates, kind), count, ids, moments (where each video opens), album (an album it made), added, langs, descriptions.

--langs ru,en: the languages to answer in, the first first (without it: your languages from your account, as account status shows them). The answer, each video moment's sentence and the items' descriptions come in the first of them the item has, else English.

$ spacebackup photos assistant "show me the videos from my last Chicago trip"
Here are your videos from Chicago, October 2–5, 2026.
14 photo(s) and video(s) shown

Space Vision#

The vision commands run on a computer that analyses the photos and videos of the phones' Not encrypted backups (Space Vision: an NVIDIA graphics card, the runtime and models installed with vision install). The full list is in spacebackup help; the two you need most:

vision status#

vision status [--machine M]

The worker (its graphics card(s), profile, and why it is not active) and, for each phone backed up here, how much is analysed. With several graphics cards, one line per card with its state: working (16g), ready (8g) (it has room for that profile now), ready: 16g by size, 8g fits now (a 16g card whose free memory holds only 8g now), waiting: GPU busy (…) (another program holds the card's memory; tried again every 2 minutes), excluded (vision gpus) or unusable (too small or too old).

JSON: worker (active, why, profile, gpu, running, gpuSetting, gpuUsed, gpus[] with index, name, totalMb, freeMb, usedMb, state, plan, working, why) and machines[].

$ spacebackup vision status
Space Vision worker: GPU 0 NVIDIA GeForce RTX 3090 24 GB, GPU 1 NVIDIA GeForce RTX 3090 24 GB (16g, auto: from the graphics card), working on GPU 0 (…), GPU 1 (…)
  GPU 0 NVIDIA GeForce RTX 3090 24 GB, 4.4 of 24.0 GB free: working (8g)
  GPU 1 NVIDIA GeForce RTX 3090 24 GB, 2.0 of 24.0 GB free: working (16g)
  Annas-iPhone: 8120 of 9400 analysed, 9400 coloured; videos: 310 analysed, 290 transcribed; 1280 waiting; done by MARS-001 7900, DST-AI-3090 220; workers from other PCs: DST-AI-3090 (220 done, on 2026-10-20)

done by credits each worker (this PC's and other PCs') with the done items whose records it put back, counted from the stored records, so a restart of this PC does not reset them; machines[].doneBy in JSON.

vision progress#

vision progress [--machine M] [--here]

What the computers with a graphics card are doing, for the whole company (the apps show the same under Settings → Photo analysis): for photos, videos, transcripts, faces in photos and faces in videos how many are done of how many, failed, the rate over the last hour and about how long the rest takes; every computer's worker (working, idle, paused, busy with something else, Local AI off, no graphics card, not set up), its card and profile and what it works on now; and the last 10 runs with what each did and its errors. Every online computer is asked (its answer is kept a few seconds); --machine one phone; --here this computer only. vision status ends with this computer's part.

Each kind ends with what it is doing in words: how many are left with the rate and the time left, Done (with what is never done, such as the videos without speech, which get no transcript), Waiting: and why (a computer busy with a backup, the graphics cards busy or paused, none on), or Not moving in the last hour while a computer that could take them stands idle.

JSON: kinds (each done, total, failed, skipped, left, lastHour, today, perMin, etaMin, status, say), workers[] (pc, state, why, profile, gpu, now), runs[], pcs[].

$ spacebackup vision progress
Space Vision progress (MARS-001, CHIA2, MARS2)
  Photos analysed: 23,950 of 24,031 (99.6 %): 69 left · 5.17 a minute · about 13 min left, 2,210 today
  Videos analysed: 480 of 512 (93.7 %): 32 left · 0.33 a minute · about 1.6 h left, 96 today
  Videos transcribed: 210 of 480 (43.7 %): Done — 270 videos have no speech, 40 today
  Faces in photos: 24,031 of 24,031 (100 %): Done
  Faces in videos: 130 of 512 (25.3 %): Waiting: MARS2 works on other items first, 130 today
  CHIA2: no-gpu (no graphics card with 8 GB or more)
  MARS-001 (NVIDIA GeForce RTX 2080 SUPER 8 GB, 8g): idle (nothing queued)
  MARS2 (NVIDIA GeForce RTX 3090 24 GB, 16g): working: describing a photo, 96 of 300, CHIA2 Vlads-iPhone 2026-11-02
  Recent runs:
    2026-11-03T13:58:02Z MARS2 on CHIA2: Vlads-iPhone, 290 photo(s), 8 video(s), 3 transcript(s), 298 with faces looked at, 2 failed (cannot identify image file)

vision workers#

vision workers [--here]

Every computer as a worker, for the whole company (the apps show the same under Settings → Photo analysis → Workers): each computer's graphics cards with how much of their memory is free and which models each would load, what it works on now, how many items a minute it did over the last hour and how many today, and for a computer that is not working why, in plain words: nothing to do, idle with work left (and what each computer answered it: offered none (CHIA3: nothing pending)), in use (its owner is at it), quiet hours, too hot, over the power cap, waiting for memory (a game or another program has the card), backing up, paused, joining (it installs the analysis by itself), or not a worker and why. Out of date is said beside the reason, only when the download site offers a newer version for that computer's system (· out of date (0.16.92; the download feed has 0.16.94): updates by itself); an older version alone never stops a worker. The first line says how many work, on how many cards, items a minute, and how many items are left. --here this computer only.

JSON: workers[] (pc, state, cards[] with index, name, totalMb, freeMb, state, profile; freeMb, profile, now, perMin, lastHour, today, idle, idleSay, version, outOfDate, offered), kinds, left, perMin, pcs[].

$ spacebackup vision workers
Workers: 2 of 5 working (3 card(s)), 12.4 items a minute, 2,340 item(s) left
  DST-AI-3090 (GPU 0 NVIDIA GeForce RTX 3090 24.0 GB, 11.5 free, 16g; GPU 1 NVIDIA GeForce RTX 3090 24.0 GB, 13.2 free, 16g): working: looking at and listening to videos of CHIA2 (3 of 40) · 7.2/min · 300 today
  mars-001 (NVIDIA GeForce RTX 2080 SUPER 8.0 GB, 0.7 free, 8g): working: describing photos of CHIA2 (96 of 300) · 5.2/min · 410 today
  mars2 (NVIDIA GeForce RTX 5070 Ti 16.0 GB, 14.6 free, 16g): PC in use (input 40 s ago; works again after 5 min without input) · 120 today
  CHIA3 (NVIDIA GeForce RTX 2060 6 GB): not a worker: its graphics card (NVIDIA GeForce RTX 2060 6 GB) has less than the 8 GB the analysis needs (or is older than an RTX 20)

A computer with a usable graphics card becomes a worker by itself: the first time there is work, it downloads the analysis (as vision download does; vision ai off says no). Videos go to the computers with the larger cards and photos to the smaller ones, several computers share one phone's photos at once, and the photos someone is looking at go first.

vision owner#

vision owner [--in-use <minutes>|off] [--quiet-hours HH:MM-HH:MM|off] [--max-temp <°C>|off] [--max-power <W>|off]

This computer's owner comes first: the worker steps back while someone uses the computer (until --in-use minutes without keyboard or mouse input; 5 by default, off works while in use; a Mac keeps its own rule, vision idle), in the quiet hours (local time, over midnight too), while a card is at or over the temperature cap (it works again 5 °C under it), and for 10 minutes after a card drew more than the power cap. A game or another program that needs the card always comes first (the 2 GB rule of vision gpus). It starts again by itself. Kept across restarts. Without an option: the rules and whether one holds the worker now.

JSON: inUseMin, quiet, maxTempC, maxPowerW, holding (why it steps back now), rule (in-use, quiet, hot, power).

$ spacebackup vision owner --quiet-hours 23:00-07:00 --max-temp 80
Space Vision owner rules: steps back while the PC is in use (works after 5 min without input); quiet hours 23:00-07:00; max temperature 80 °C; max power off
  now: not holding the worker

vision gpus#

vision gpus [all|<index>[,<index>…]|none]

Which graphics cards analyse. all (the default) runs one worker per usable card, each with the largest profile its free memory fits at that moment (16g, else 8g when the 8g models are installed, else it waits), and they share the work so no item is analysed twice. A card another program uses (2 GB or more, such as LM Studio or a game) keeps 1 GB free for that program, and the worker on it stops and gives its memory back when the card is nearly full. 0,1 or 1 uses only those cards (the numbers nvidia-smi shows); none uses none (colours only). Kept across restarts. Without an argument: the setting and each card's state.

JSON: setting, gpus[] (as in vision status), gpuUsed, why.

$ spacebackup vision gpus 1
Space Vision GPUs: 1
  GPU 0 NVIDIA GeForce RTX 3090 24 GB, 11.5 of 24.0 GB free: excluded (vision gpus 1)
  GPU 1 NVIDIA GeForce RTX 3090 24 GB, 13.2 of 24.0 GB free: ready (16g)

vision idle#

vision idle [<minutes>|off]

A Mac only. A Mac you are using keeps 6 GB (on a 16 GB Mac; a quarter on larger ones) for your apps, and the worker waits while macOS reports memory pressure. After this many minutes without keyboard, mouse or trackpad input, or as soon as the lid is closed while the Mac is plugged in, the Mac counts as idle: your apps then keep 3 GB (an eighth on larger Macs) and pressure warning no longer holds the worker back. The worker stops within seconds of the first key press or mouse move, of critical memory pressure, or of unplugging the power. The default is 5 minutes; off never lets the Mac count as idle. Kept across restarts. Without an argument: the setting and what holds the worker now ([rule: battery], [rule: pressure] or [rule: reserve]).

$ spacebackup vision idle
Space Vision idle mode: after 5 min without input, or with the lid closed on mains
  GPU 0 Apple M5 16 GB unified memory, 3.4 GB reclaimable, pressure warning, in use (6.0 GB kept for apps), 0.0 of 10.0 GB free: waiting: memory pressure warning (Apple M5, in use: no new batches until it is normal; idle after 5 min without input or with the lid closed: 3.0 GB kept) [rule: pressure]

Notifications#

The notification history of this computer: those from the account service (albums, shares, devices waiting for the key, new devices, restore approvals, relay credit, invitations accepted) and this computer's own warnings (a folder not backed up or missing, a drive full or missing, an update rolled back, a drive back and catching up). See Notifications and history. notifications alone is notifications list.

notifications list#

notifications list [--unread] [--limit N]

Newest first. Ids are s<n> (from the account service) or l<n> (this computer's own). * marks unread; (quiet) marks a kind you turned off in your notification settings (kept, but not popped up). The last line is the unread count.

OptionMeaning
--unreadonly the unread ones
--limit Nat most N

JSON: notifications (each: id, source = service or local, time, kind, title, body, target = what it opens: type, id; read, quiet, seq), unread, cursor.

Service kinds: album-added, shared, key-waiting, device-joined, restore-approval, relay-credit, invitation-accepted, remove-request. This computer's kinds: folder-not-backed-up, folder-missing, drive-full, drive-missing, update-rolled-back, drive-back.

$ spacebackup notifications --limit 3
s1042  * 2026-10-18 13:05  New photos in Chicago trip: Bob added 6 photos.
l17    * 2026-10-18 02:40  E:\ is missing: E:\ could not be reached, so nothing was backed up to it. Plug it in or switch it on; it catches up when it is back.
s1039    2026-10-17 18:22  BOB-LAPTOP joined Acme: bob@acme.com added a device. (quiet)
2 unread

notifications read#

notifications read <id>... | --all

Marks notifications read (clicking one in the list), or all of them (Mark all as read). Those from the account service are marked read at the service too, so your other devices and your iPhone follow. Unknown id: exit 1; neither ids nor --all: exit 2.

PS C:\> sbctl notifications read --all
2 marked read; 0 unread

notifications watch#

notifications watch [--for D]

Prints each new notification as it arrives, one line each (with --json, one notification object per line), until Ctrl+C or --for.

$ spacebackup --json notifications watch --for 1h
{"id":"s1043","source":"service","time":"2026-10-18T18:30:12Z","kind":"key-waiting","title":"BOB-LAPTOP is waiting for the company key","body":"Approve it on the admin page.","target":{"type":"key-release","id":"kr_51…"},"read":false,"quiet":false,"seq":88}

changes wait#

changes wait [--after N] [--wait S]

What this computer learned changed, as topics (an album made or renamed, album:<id> for its photos and videos, devices, shares, faces, settings, notifications…): the same feed the Space Backup window's live updates read. Without --after, the cursor to start from; with --after N, the topics after it, held up to --wait S seconds (at most 25) until one comes. full: true: the cursor is not known (the app restarted): read everything again. Topics only, never names or contents.

JSON: cursor, changed, full.

$ spacebackup --json changes wait
{"cursor":41,"changed":[],"full":false}
$ spacebackup --json changes wait --after 41 --wait 25
{"cursor":43,"changed":["albums","album:al_5k2m9x7q3w1c8v4b"],"full":false}

Space Relay#

Space Relay connects your company's computers at different sites. See Space Relay and Billing and prices. relay alone is relay balance. relay balance and relay buy need this computer to be signed in (else exit 1 not signed in: sign in first: account signin <email>).

relay balance#

relay [balance]

The company's relay credit: the free traffic of this month (5 GB per company) and the prepaid credit (which never expires), then Activation needed: … when the free traffic is used and there is no credit, and the auto top-up. Sizes are in decimal GB (10^9 bytes, as the relay counts), always in GB.

JSON: month, freeBytes (null = unlimited), freeUsedBytes, prepaidBytes, activationNeeded, autoTopUp, autoTopUpPack, paymentsEnabled, line.

$ spacebackup relay
Free this month: 3.2 / 5 GB · Prepaid: 87 GB
Auto top-up: on (500 GB pack)

relay buy#

relay buy [--open]

Prints a single-use link (valid 15 minutes) to the account page's buy screen, already signed in as this computer's email (500 GB $9 · 2 TB $25 · 5 TB $49; credit never expires). The link is alone on the first line; --open also opens it in your browser.

JSON: url, expiresUtc, opened (null without --open).

PS C:\> sbctl relay buy
https://spacebackup.net/account/buy?t=7HqP…
(opens the buy screen signed in as this PC's email; single use, valid until 14:52)

relay activate#

relay activate [--open]

Activate Space Relay… in Settings. Signed in: the same single-use buy link as relay buy. Not signed in: the page that activates Space Relay for this company (the relay-activate-url setting, set once this month's free relay traffic is used). Neither: exit 1. JSON as relay buy (expiresUtc null for the activation page).

$ spacebackup relay activate --open
https://spacebackup.net/account/relay/activate?group=QX7M2
(the page that activates Space Relay for this company)
Opened in your browser.

Google Drive#

Back up Google accounts (read-only). Each account is backed up by exactly one computer of the company at a time (its worker). See Google Drive. gdrive alone is gdrive list.

gdrive list#

gdrive [list]

The Google accounts backed up in the company: the computer backing each up, size, last and next run, status, frequency, scope, destinations, and where the copies live.

JSON (array): email, worker, workerIsThisPc, sizeBytes, lastRun, nextRun, status, warning, frequency, scope, exportPdf, includeTrash, dest (as gdrive set … dest takes it), destMode, copies, selectedDestinations, where, destWarning, mirror (the working copy, only on the worker), lastResult, moveTo.

$ spacebackup gdrive
anna@acme.com  backed up by OFFICE-NAS  OK
    size 14.2 GB, last run 2026-10-18 02:20, next 2026-10-19 02:20, frequency night, scope my-drive,shared-drives, destinations all
    copies: OFFICE-NAS:/srv/backup, ANNA-PC:E:\

gdrive add#

gdrive add [--no-browser] [--take-over] [--dest D]
gdrive add --session <id> --redirect '<address>'

Signs in to a Google account (read-only access) in the browser and backs it up from this computer. The command waits up to 10 minutes for the sign-in.

OptionMeaning
--no-browserdo not open a browser: print the address to open (also done without a display)
--take-overalso when another computer backs this account up (else refused: already backed up by OFFICE-NAS)
--dest Dits destinations once signed in (the window's destinations step); see Destinations
--session <id> --redirect '<address>'finishing a sign-in made in a browser on another computer: after allowing access, that browser shows an http://127.0.0.1:… address that does not load; copy it and pass it here, with the session id the first command printed
$ spacebackup gdrive add --no-browser --dest auto:2
Open this address in a browser on this computer to sign in to Google:
https://accounts.google.com/o/oauth2/v2/auth?…
(Browser on another computer: after allowing access it shows an address starting with http://127.0.0.1 that does not load; copy it and run: spacebackup gdrive add --session 5d1e… --redirect '<that address>')
Waiting for the sign-in…
signed in as anna@acme.com; this PC backs it up (first run 2026-10-19 02:20, or now: gdrive now anna@acme.com). Fastest PC: gdrive speedtest anna@acme.com
anna@acme.com: destinations auto:2

gdrive remove#

gdrive remove <email>

Stops backing up the account. Its backups on the destinations are kept; the sign-in is dropped and revoked.

$ spacebackup gdrive remove anna@acme.com
anna@acme.com: no longer backed up; its backups on the destinations are kept

gdrive move#

gdrive move <email> --to <machine> [--no-browser]

Makes another computer back up the account: it takes over once someone signs in there. With --to this computer, it signs in here and takes over at once (the old worker drops its sign-in).

PS C:\> sbctl gdrive move anna@acme.com --to OFFICE-NAS
anna@acme.com: OFFICE-NAS takes over once someone signs in there (on OFFICE-NAS: gdrive move anna@acme.com --to OFFICE-NAS, or Settings → Google Drive → Move here); this PC keeps backing it up until then

gdrive speedtest#

gdrive speedtest <email>

Run on the computer backing the account up: measures the download speed from Google Drive on every online computer (with a short-lived access token passed over the encrypted link between computers) and their free disk, and suggests the fastest one with enough disk (marked *).

$ spacebackup gdrive speedtest anna@acme.com
* OFFICE-NAS: 61.4 MB/s, 3120.6 GB free
  ANNA-PC (this PC): 22.8 MB/s, 812.4 GB free
Suggested: OFFICE-NAS (gdrive move anna@acme.com --to OFFICE-NAS)

gdrive now#

gdrive now <email> [--wait]

Backs up the account now: its Drive run (only the changes after the first), then its copy to the destinations. Run it on the computer backing it up (else exit 1, naming that computer). Exit 4 when the Drive part did not fully succeed.

$ spacebackup --json gdrive now anna@acme.com --wait
{"ok":true,"partial":false,"message":"…","error":null}

gdrive set#

gdrive set <email> frequency|scope|export-pdf|include-trash|dest <value>
SettingValues
frequencynight (default), hourly, every:N, daily:HH:mm, weekly:<day>:HH:mm, manual
scopea comma list of my-drive, shared-drives, shared-with-me (the next run lists the account again)
export-pdfon/off: also export Google Docs, Sheets and Slides as PDF
include-trashon/off: also back up the trash
destall, auto:N, selected:<id>|<id>
PS C:\> sbctl gdrive set anna@acme.com frequency daily:22:00
anna@acme.com: frequency daily:22:00

Updates#

Automatic updates from spacebackup.net: every download is checked against a signed list before it is installed, a version is never downgraded, and it installs only when nothing is running. See Automatic updates. The mode is the updates setting (automatic, notify, off). update alone is update status.

Platform differences: Windows runs the new installer silently (and goes back to the old version if the new one does not start); a Linux .tar.gz or AppImage install replaces itself; a Linux .deb install only tells you the sudo apt install ./spacebackup_<version>_amd64.deb command; macOS replaces the whole app.

All update commands answer with the same JSON: mode, channel, current, latest, available, state (idle, checking, up-to-date, available, downloading, ready, waiting-idle, installing, held, error, unsupported), text, lastCheckUtc, nextCheckUtc, error, skipped, waitingSinceUtc, waitingFor (state waiting-idle: what it waits for, e.g. "this PC's backup"), updatedFrom, feedUrl, failedVersion, failedUtc, failedReason, failedText (the last update that could not be completed on this computer; that version is tried again at most once a day, state held).

update status#

update [status]

Mode, current and latest version, state.

PS C:\> sbctl update
up to date (0.12.1)
mode automatic, channel stable, running 0.12.1, latest 0.12.1; last check 2026-10-18 08:02, next 2026-10-18 14:11

update check#

update check

Checks the signed update list now (in Automatic mode, also downloads and installs at the next idle moment). Exit 1 when the check failed.

$ spacebackup update check
0.12.2 available (sbctl update now)
mode notify, channel stable, running 0.12.1, latest 0.12.2; last check 2026-10-18 14:30, next 2026-10-18 20:41

update now#

update now

Downloads, verifies and installs the latest version now (also in Notify mode, and also a version held after a failure), as soon as no backup, restore or check of this computer is running; phones and computers merely browsing its photos do not hold it back. Exit 1 on an error.

PS C:\> sbctl update now
0.12.2 ready; waiting for this PC's backup to end (update now)
mode automatic, channel stable, running 0.12.1, latest 0.12.2; last check 2026-10-18 14:31

update skip#

update skip

Notify mode: do not offer the available version again (a newer one will be offered).

$ spacebackup update skip
0.12.2 will not be offered again (a newer version will)

Explorer integration (Windows)#

Windows only. The Explorer badge is the Space Backup mark on backed-up folders in Explorer (Settings → Explorer badge). On macOS and Linux these commands answer … is Windows only with exit 1 (Linux: integrate adds the file manager menus and emblems; macOS: the Finder extension of the app). See File manager badges and menus. shell alone is shell status.

shell status#

shell [status]

Whether the Explorer badge is installed and loaded.

Exit 1 when it is not installed (or Windows gave it no overlay slot).

PS C:\> sbctl shell
Explorer badge: on; it turns while a folder is backed up. (C:\Users\anna\AppData\Local\Programs\SpaceBackup\SpaceBackupShell.dll; 2 of 2 overlays got a slot)

shell install#

shell install [--restart-explorer]

Installs the Explorer badge; Windows asks for administrator rights. --restart-explorer then restarts Explorer so the badge shows (the answer to the window's "Restart Explorer now?"); without it Explorer is not restarted and the badge appears after the next sign-in.

PS C:\> sbctl shell install --restart-explorer
Explorer badge: installed; restart Explorer to show it.
Explorer restarted

shell uninstall#

shell uninstall [--restart-explorer]

Removes the Explorer badge (administrator rights); --restart-explorer as above.

PS C:\> sbctl shell uninstall
Explorer badge removed.

shell restart-explorer#

shell restart-explorer

Restarts Explorer so it shows (or stops showing) the badge. Open folder windows come back.

PS C:\> sbctl shell restart-explorer
Explorer restarted

Linux and macOS only commands#

These are handled by the spacebackup program itself and are not in sbctl.

CommandLinuxmacOS
daemonyesyes
install [--no-start], uninstallyes (systemd user service)yes (LaunchAgent)
integrate, unintegrateyesno: the app's Finder extension replaces it
gui [--window] [--restore <path>]yesno: the menu-bar app replaces it
--port <n>yesyes

daemon#

daemon [--port <n>]

Runs the daemon in the foreground, printing its log (normally the systemd user service or the LaunchAgent runs it). Stop it with Ctrl+C. --port <n>: the TCP port for other computers (default 47800; 0 = any free port, which status shows); it is saved in the settings.

$ spacebackup --profile test daemon --port 0
14:02:11  Space Backup 0.12.1 for Linux started (/home/anna/.local/opt/spacebackup/spacebackup) as ANNA-LAPTOP-test; config /home/anna/.config/spacebackup/profiles/test, state /home/anna/.local/state/spacebackup/profiles/test
…

install#

install [--no-start] [--port <n>]

Linux: writes and enables the systemd user service spacebackup.service and starts it (--no-start: not now). On a .deb install the service is already enabled for every user; install turns it back on after uninstall. Run sudo loginctl enable-linger $USER once so it runs from boot without a login (install says so when needed).

macOS: writes the LaunchAgent ~/Library/LaunchAgents/net.spacebackup.daemon.plist and loads it: the daemon starts now and at every login, and again after a crash (not after stop). No administrator rights are needed.

$ spacebackup install
Wrote /home/anna/.config/systemd/user/spacebackup.service (runs /home/anna/.local/opt/spacebackup/spacebackup). Keep the binary there, or run install again after moving it.
Enabled and started spacebackup.service (systemctl --user status spacebackup.service; logs: journalctl --user -u spacebackup.service).

On macOS:

$ spacebackup install
Wrote /Users/anna/Library/LaunchAgents/net.spacebackup.daemon.plist (runs /Applications/Space Backup.app/Contents/MacOS/spacebackup). Keep the program there, or run install again after moving it.
Started net.spacebackup.daemon; it starts at every login (log: spacebackup log).

uninstall#

uninstall

Stops and removes (Linux .deb: turns off for your user) the service or LaunchAgent. Settings, state and backups stay.

$ spacebackup uninstall
Stopped and removed spacebackup.service. Config (/home/anna/.config/spacebackup), state (/home/anna/.local/state/spacebackup) and all backups are kept.

integrate#

integrate

Linux only. Adds the Space Backup right-click menus (Add to Space Backup, Remove from Space Backup, Space Backup Now, Restore from Space Backup…) to Nautilus, Nemo and Dolphin, and the emblem on backed-up folders. User-level and safe to run again. With Nautilus, run nautilus -q once to restart it. The menus run spacebackup fm-action add|remove|now|restore <paths>, which reports the result as a desktop notification.

$ spacebackup integrate
Nautilus: a Space Backup submenu and folder emblems (restart Nautilus once: nautilus -q).
Backed-up folders carry the emblem-spacebackup emblem (gio metadata; shown by Nautilus and Nemo).

unintegrate#

unintegrate

Linux only. Removes exactly what integrate added.

$ spacebackup unintegrate
File manager integration removed (menus, scripts, emblem icon, folder emblems).

gui#

gui [--window] [--restore <path>]

Linux only. Starts the graphical app (spacebackup-gui) detached from the terminal: a tray icon, or a window when the desktop has no tray. --window forces the window. --restore <path> opens Restore… preset to that path (in the running app if there is one). Only one per user; a second gui shows the running one's window.

It prints nothing when it started; spacebackup-gui not found next to … (exit 1) when the graphical app is not installed (set SPACEBACKUP_GUI to its path if it lives elsewhere).

$ spacebackup gui --restore ~/Documents/Reports
$ echo $?
0

Checks, log, firewall, version and help#

scrub#

scrub [--now] [--status]

The integrity check of this computer's destinations: each backed-up file is read again and compared with the manifest; a damaged file is repaired from a good copy. It runs in the night window as the scrub setting says (weekly, monthly, off). Without options, or with --status, it shows the state per destination; --now starts a check now.

JSON: running, destinations (each: root, lastCheckUtc, filesOk, repaired, damaged, text).

PS C:\> sbctl scrub
no check running
E:\SpaceBackup: last check 2026-10-12 03:10, 146,402 files OK, 0 repaired

resend#

resend [list] [--device D]

The damaged backup copies this computer asked their devices to send again (A damaged copy is sent again): a file the check or the photo analysis found damaged with no good copy on any drive or computer. Each line: the request, its state (pending: asked; sent: sent again, the next check confirms it; done; gone: no longer on the device; same: damaged on the device too; failed: still damaged after two sends), the device, the date and file, why, and when it was asked and answered. Nothing to do here: the devices send them by themselves, and you are told only when that cannot work. --device: one device's or computer's requests.

JSON (array): Id, Device, Date, Rel, ItemId, Hash, Size, Cause, Found, Dests, RequestedUtc, PushedUtc, Pushes, State, Sends, Error, AnsweredUtc, ToldUtc. Exit 0.

$ spacebackup resend
rs_3f2a9c1d0b7e6a54  pending  Marinas-iPad: 2026-11-08\Photos\2026\11\IMG_1234.HEIC  (the original is cut short (HEIF by its bytes, named .HEIC: …); asked 2026-11-10 23:40 UTC)

log#

log [--tail N] [--follow [--for D]]

The app log: the last N lines (default 40); --follow keeps printing new lines. Where the file is: Windows %APPDATA%\SpaceBackup\log.txt; Linux ~/.local/state/spacebackup/log.txt (also in the journal: journalctl --user -u spacebackup); macOS ~/Library/Application Support/SpaceBackup. See Logs per platform.

JSON: lines, cursor, path; with --follow, one line (a JSON string) per line.

$ spacebackup log --tail 2
2026-10-18 14:19:07  Peer OFFICE-NAS runs 0.12.2 (this PC 0.12.1): checking for an update now
2026-10-18 14:19:09  Rearrange: rearranged 412 items to OFFICE-NAS:/srv/backup

firewall#

firewall [--check] [--allow] [--allowed]

Lets the other computers reach this one (TCP 47800 and UDP 47801). See Firewall and ports.

JSON: allowed, port, discoveryPort, text, and on Linux kind (ufw, firewalld) and allowCommand.

$ spacebackup firewall --allow
adding the firewall rules needs root: sudo asks for a password here. Run as root (or with sudo), or: ufw allow 47800/tcp …
$ echo $?
5

version#

version

The app's version, the platform, the peer protocol version, and the command line's own; works without the app running.

JSON: app, platform, protocol, daemon, updatedFrom, cli, running, updatedUtc.

PS C:\> sbctl version
Space Backup 0.12.1 (windows), peer protocol v0.5; sbctl 0.12.1
$ spacebackup version
Space Backup 0.12.1 for Linux; daemon 0.12.1; protocol v0.5

help#

help [<command>]

All commands with one line each, or one command's synopsis, description and options. help settings set also lists every setting key. On Linux and macOS the list ends with the platform's own commands.

$ spacebackup help cancel
spacebackup cancel [--restore]
  cancel the running backup (it is not resumed); --restore: stop the restores running now instead (the files restored so far stay)
  --restore: stop running restores (the Restore window's Stop), not the backup

Transaction log and diagnostics commands#

Besides the human-readable app log, every computer keeps a transaction log: one record per operation (a file copied, a hard link batch, a verification, a prune, a restored file, a connection to another computer, an update…). These commands let you see exactly what Space Backup did and why, and are what support asks for. All of them take --json (streams: one JSON object per line).

Where it is kept: %APPDATA%\SpaceBackup\txlog\ on Windows, ~/.local/state/spacebackup/txlog/ on Linux, the txlog folder in ~/Library/Application Support/SpaceBackup on macOS. One file per day (tx-YYYY-MM-DD.jsonl), compressed after 7 days and kept 90 days (the txlog-days setting); runs in runs-YYYY-MM.jsonl, events in events.jsonl. A computer also logs what it did for other computers (files it received, copies passed on, prunes), marked onBehalfOf.

To keep the log small for big folders, unchanged files are not recorded one by one: hard links of unchanged files are one link record per batch, files already in today's folder one skip-unchanged record per folder and destination, and a folder's scan one scan record. Every file copied (new or changed), every failure, retry, resume, fan-out copy, prune, repair and restored file has its own record.

Record kinds#

KindMeaning
scana folder was scanned (files and bytes)
copya file was copied, new or changed (with its hash and duration); a failed or skipped file is a copy with result fail
linka batch of unchanged files hard-linked from the previous date (files = how many, source = the folder)
skip-unchangedfiles already in today's folder, per folder and destination
verify / verify-faila copy was read back and checked / failed the check (it is redone)
retryan operation was tried again
resumean interrupted copy was continued
fan-outa copy passed on from one destination to another
prunean old date folder was removed (max-backups)
scrub-ok / scrub-repairthe integrity check found a file good / repaired it
restorea file was restored
erroran error not tied to one file
peer-connect / peer-disconnecta connection to another computer opened / closed
updatean update was installed (or rolled back)
gdrive-sync, gdrive-download, gdrive-export, gdrive-move, gdrive-delete, gdrive-unsupported, gdrive-assignGoogle Drive: one Drive run of an account, and its files; source is gdrive:<email>/<path>

A record's JSON fields: seq (order, for following), ts, runId, kind, source, dest (destination id), destPath, peer (the other computer, if remote), bytes, files (for grouped records), hash (XXH128 in hex, as in the manifests), durationMs, result (ok or fail), error, onBehalfOf.

tx#

tx [--run ID] [--since T] [--until T] [--kind K]... [--path GLOB] [--dest ID] [--result ok|fail] [--limit N] [--follow [--for D]]

Queries the transaction log. Default: the newest 100 records; with --run, all of that run.

OptionMeaning
--run IDonly one run (last = the newest run)
--since T, --until Ta time range (see Times)
--kind K(repeatable) only these kinds
--path GLOBonly these paths: * and ? as wildcards, case-insensitive, \ and / alike; a path without wildcards matches everything under it
--dest IDonly this destination
--result ok|failonly successes or failures
--limit Nat most N records (0: no limit)
--followthen keep printing new records live (--for to stop)

JSON: records, cursor, truncated; with --follow, one record per line.

$ spacebackup tx --result fail --since 7d
2026-10-16 02:21:44 copy            FAIL /home/anna/Documents/locked.pst -> OFFICE-NAS:/srv/backup: The process cannot access the file because it is being used by another process. [run 4b7e90c1a2d34f6e8b0c1d2e3f4a5b6c]

runs list#

runs [list] [--since T] [--folder P] [--limit N]

Every backup run: id, start and end, trigger, result, files and bytes copied, linked, unchanged, skipped and failed, verification retries, number of destinations. Default: the newest 50.

Triggers: schedule, catch-up (a drive or computer came back), drive-back (a drive came back), peer-back (another computer or its drive came back online), now, selection (chosen files and folders), resume (an interrupted run continued), queued, command. Results: running, ok, warning, error, cancelled.

JSON (array): see runs show (perDestination, slowest and failed are empty in the list).

PS C:\> sbctl runs --limit 2
9f3c2a71e0b84d5c9a1e6f2b7c8d0e11  2026-10-18 14:15 -> 14:19  now       ok        226 copied (1.21 GB), 12194 linked, 0 unchanged, 0 skipped, 0 failed; 2 destination(s)
4b7e90c1a2d34f6e8b0c1d2e3f4a5b6c  2026-10-18 02:14 -> 02:31  schedule  warning   61 copied (212.70 MB), 3847 linked, 0 unchanged, 1 skipped, 1 failed; 2 destination(s)

runs show#

runs show <id>|last

One run in full: the reason and date folder, folders and items, summary, the result per destination, the slowest and the failed items, errors. last is the newest run; an id prefix of 4 or more characters works. Unknown id: exit 1.

JSON: id, resumeOf, trigger, reason, date, startedUtc, finishedUtc, folders, items, destinations, filesCopied, filesUpdated, filesLinked, filesUnchanged, filesSkipped, filesFailed, filesRemoved, bytesCopied, bytesResumed, verifyRetries, fannedOut, result, summary, errors, perDestination (each: dest, result = ok/incomplete/missing/failed, files, bytes, linked, errors, avgMBps), slowest and failed (transaction records).

$ spacebackup runs show 4b7e
4b7e90c1a2d34f6e8b0c1d2e3f4a5b6c  2026-10-18 02:14 -> 02:31  schedule  warning   61 copied (212.70 MB), 3847 linked, 0 unchanged, 1 skipped, 1 failed; 2 destination(s)
reason: scheduled; date folder 2026-10-18
folders: /home/anna/Documents; /home/anna/Pictures
summary: 57 new, 4 changed, 3847 unchanged (linked), 212.7 MB; 1 skipped; 1 errors
  ANNA-LAPTOP:/media/anna/Backup: ok, 61 copied (212.70 MB, 88.2 MB/s), 3,847 linked, 0 error(s)
  OFFICE-NAS:/srv/backup: ok, 60 copied (211.10 MB, 41.5 MB/s), 3,847 linked, 1 error(s)
failed:
  copy /home/anna/Documents/locked.pst -> OFFICE-NAS:/srv/backup: The process cannot access the file because it is being used by another process.

transfers#

transfers

What is moving right now: kind (backup, fan-out, serving = another computer's backup arriving here, restore), file, from and to, bytes done of total, speed, time left.

JSON (array): kind, file, from, to, bytesDone, bytesTotal, files (a batch of small files), speedMBps, etaSeconds, startedUtc.

PS C:\> sbctl transfers
backup: D:\Projects\video\final.mp4  ANNA-PC -> OFFICE-NAS:/srv/backup  1.12 GB of 3.40 GB, 41.2 MB/s, ETA 00:00:57

queue#

queue

Pending work: the next scheduled run of each folder (marked (retry) when the last run found every destination offline, (catch-up) for a catch-up), a run queued while another runs, selections waiting, interrupted runs to resume, the fan-out backlog per destination, the integrity check, an update waiting.

JSON: scheduled (each: folder, nextRun, text, catchUp, retry), queuedRun, queuedItems, resumePending, fanOut (each: dest, files, bytes), scrub (running, current, fraction, due), update.

$ spacebackup queue
/home/anna/Documents: 2026-10-19 02:14
/home/anna/Pictures: 2026-10-19 02:14 (retry)
fan-out to OFFICE-NAS:/srv/backup: 214 file(s), 1.18 GB
check: not due

stats#

stats [--days N]

Per destination and per other computer, over the last N days (default 7, 1–3650): files and bytes, average speed, errors, how often it was online; per computer the bytes sent and received and connections; the relay traffic.

JSON: days, sinceUtc, destinations (each: dest, files, bytes, linked, avgMBps, errors, onlinePercent), peers (each: peer, bytesOut = this computer's backups sent there, filesOut, bytesIn = its backups received here, filesIn, errors, connects), runs, runsFailed, relay (as in status).

PS C:\> sbctl stats --days 30
last 30 day(s): 31 run(s), 2 with errors
ANNA-PC:E:\: 8,412 files, 41.20 GB, 132.4 MB/s, 3,512,004 linked, 0 error(s), online 97%
OFFICE-NAS:/srv/backup: 8,398 files, 41.12 GB, 44.8 MB/s, 3,511,870 linked, 3 error(s), online 100%
peer OFFICE-NAS: out 41.12 GB (8,398 files), in 0 B (0 files), 3 error(s), 62 connection(s)

events#

events [--follow [--for D]] [--since T] [--limit N]

The high-level event stream: the app starting and stopping, state changes, warnings, computers coming online and going offline, runs starting and ending, checks, updates, setting changes, folders, destinations and key changes. Default: the newest 50.

Kinds: app-start, app-stop, state, warning, peer-up, peer-down, run-start, run-end, scrub-start, scrub-end, update, setting, folder, destination, key (and others such as run-cancel, restore, albums). Levels: info, warning, error.

JSON: events (each: seq, ts, kind, level, text), cursor; with --follow, one event per line.

$ spacebackup events --limit 3
2026-10-18 14:15:02 info    run-start       backup started (command): 2 folder(s)
2026-10-18 14:19:07 info    run-end         backup finished: ok: 226 new, 12 changed, 12194 unchanged (linked), 1240.5 MB [run 9f3c2a71e0b84d5c9a1e6f2b7c8d0e11]
2026-10-18 14:20:31 warning peer-down       ANNA-PC offline (relayed, 0.12.1)

explain#

explain <path>

Everything known about one file or folder: which backed-up folder covers it, its schedule and destinations, every destination and date that holds it (with hash and status), the last copy and verification, the last integrity check of its destination, and why it was or was not copied in the last run.

lastRunAction is one of copied, updated, linked, unchanged, skipped, failed, not-in-run, never. A copy's status is ok, damaged or unverified (not in the manifest yet).

JSON: path, exists, isDirectory, size, mtimeUtc, folder, frequency, nextRun, destinationsMode, targets, copies (each: dest, date, path, size, mtimeUtc, hash, status, incomplete), lastCopy, lastVerify (transaction records), lastScrubUtc, lastRunId, lastRunAction, why, notes.

PS C:\> sbctl explain D:\Projects\plan.docx
D:\Projects\plan.docx: file, 310.4 KB, modified 2026-10-02 09:15
covered by D:\Projects: frequency weekly, next run 2026-10-25 02:41, destinations auto:2
goes to: ANNA-PC:E:\; OFFICE-NAS:/srv/backup
last run: linked (run 9f3c2a71e0b84d5c9a1e6f2b7c8d0e11): unchanged since the previous backup (same size and modification time): hard-linked into the new date folder instead of copied
copies: 2
  2026-10-18 ANNA-PC:E:\: ok, 310.4 KB, xxh128 5b0d…
    E:\SpaceBackup\ANNA-PC\2026-10-18\D\Projects\plan.docx
  2026-10-18 OFFICE-NAS:/srv/backup: ok, 310.4 KB, xxh128 5b0d…
    /srv/backup/SpaceBackup/ANNA-PC/2026-10-18/D/Projects/plan.docx

diag#

diag [--out <file.zip>]

Writes a diagnostic bundle for support: the settings with secrets removed, the recent app log and transaction log, versions, other computers, destinations, disk information and firewall state. The company key and the relay token are never in it. --out chooses the file. See Diagnostic bundle.

JSON: path, bytes, files.

$ spacebackup diag --out ~/spacebackup-diag.zip
diagnostic bundle written: /home/anna/spacebackup-diag.zip (2.4 MB, 14 files; the company key and relay token are not in it)