SSQZ/atlasDocs
Reference

Command reference

Every command and option of sqz, sqz backup and sqz-extract. Run sqz, sqz backup help or sqz-extract without arguments for the same help in your terminal.

sqz#

sqz c [mode] [-j N] <file-or-folder> <archive.sqz>
sqz a [mode] [-j N] <file-or-folder> <archive.sqz>
sqz x [-s N] [-j N] [--file PATH]... <archive.sqz> <output-folder>
sqz t [-s N] [-j N] [--file PATH]... <archive.sqz>
sqz l [-s N] <archive.sqz>
sqz zip [-s N] [--file PATH]... <archive.sqz> <out.zip>
sqz estimate [mode] [-j N] <file-or-folder> [--json]
sqz estimate [-s N] [-j N] [--file PATH]... <archive.sqz> [<output-folder>] [--json]
sqz backup ...
sqz bench [-j N] <file-or-folder>
sqz probe <file-or-folder>

Commands#

CommandWhat it doesMore
cCreate a new archive. Refuses to replace an existing file.Create
aAdd a snapshot, creating the archive if needed.Snapshots
xExtract into a folder, verifying every file. Never overwrites.Extract
tVerify every file without writing anything.Test
lList files and snapshots.List
zipExport a snapshot as a standard ZIP, checked before it is kept.Export to ZIP
estimateTime, size and memory before packing or extracting, from a sample.Estimates
backupEncrypted backup repository (preview).below
benchPack the input with all four modes and compare size and time.Modes
probeFor each transform, the bytes it saves and its encode and decode cost.Transforms

Options#

OptionApplies toMeaning
--max, --maximumc, a, estimateSampled context-mixing / LZMA2 choice, compared with zstd. The default.
--balancedc, a, estimateThe smaller of LZMA2 and zstd for each block.
--smartc, a, estimatePer-block cost planner over store, zstd and LZMA2.
--fast, --instantc, a, estimatezstd, without media transforms.
-j N, --threads NallThreads. Default: every core for Fast, up to 8 otherwise.
--block MiBc, a, estimateLargest solid block, 4 to 1024 MiB (default 32).
-s N, --snapshot Nx, t, l, zip, estimateSnapshot N, 1 being the oldest. Default: the latest.
--file PATHx, t, zip, estimateAn exact path in the archive, with forward slashes. Repeatable.
--estimatec, a, xPrint an estimate before the job.
--no-estimatec, aSkip the automatic estimate for inputs of 1 GiB or more.
--jsonestimatePrint the estimate as JSON.
--no-transformsc, a, estimateTurn off JPEG and DEFLATE transforms (for comparisons).
--model-familyc, a, estimateExperimental tensor-aware path for related safetensors checkpoints.

Exit codes: 0 success, 1 error, 2 command line not understood.

sqz backup#

<repo> is a folder or s3://bucket/prefix. <snapshot> is latest, a number, or the start of an ID.

CommandWhat it does
init <repo>Create a repository; asks for a password and shows the recovery key once.
run <repo> <file-or-folder>Save a new snapshot. Options: --read-all, --timings, --vss or --vss-fallback, --usn-check or --usn.
list <repo>Snapshots, oldest first, with protected, verified and drill status.
restore <repo> <snapshot> <dest>Restore into a folder; never overwrites. Options: --file PATH (a file or folder, repeatable), --acls (Windows).
check <repo>Verify structure. --read-data decrypts and verifies everything and records the latest verified snapshot.
forget <repo> <snapshot>...Remove named snapshots (data stays until prune).
forget <repo> --keep-...Keep by rule: --keep-last, --keep-hourly, --keep-daily, --keep-weekly, --keep-monthly, --keep-yearly. With --dry-run and --prune.
prune <repo>Reclaim unused data. --dry-run, --grace HOURS (24), --max-waste PERCENT (5).
protect <repo> <snapshot>Never forget this snapshot. unprotect undoes it.
add-password <repo>Add another password.
copy <repo> <replica>Make or update a replica without the password. --mirror, --dry-run.
drill <repo> [<snapshot>]Rehearse a restore without writing. --sample N (20), --seed N, --full.

On any command, --recovery unlocks with the recovery key instead of a password, and --password-stdin reads the secrets from standard input, one per line: the password (or recovery key), then the new password for add-password; init reads only the new password. --json on init, run and list prints one JSON object on standard output (times in Unix seconds) and the messages on standard error.

Environment#

VariableMeaning
SQZ_PASSWORDRepository password
SQZ_NEW_PASSWORDNew password for init and add-password
SQZ_RECOVERY_KEYRecovery key, with --recovery
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, AWS_REGIONS3 credentials and region
SQZ_S3_ENDPOINTS3 endpoint for MinIO, R2, B2, Ceph and others

Exit codes#

CodeMeaning
0Success
1Error
2Command line not understood
3run: snapshot saved, some files could not be read
4run --vss-fallback: backed up live files, no shadow copy
5run --usn-check: the change journal missed a changed file

sqz-extract#

sqz-extract <archive.sqz> [output-folder]
sqz-extract -t <archive.sqz>
sqz-extract -l <archive.sqz>
sqz-extract --info <archive.sqz>
sqz-extract --version
OptionMeaning
-tVerify every file without writing
-lList files and snapshots
--infoFormat version and contents in brief
--versionFormat versions and features this build reads
-s NSnapshot N (1 = oldest); default the latest
--file PATHOnly this archive path (repeatable)
-j NThreads

Without an output folder it extracts into a new folder named after the archive, next to it. Exit codes: 0 all verified, 1 failure, 2 usage, 3 the archive needs a newer sqz-extract.