Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

syq clean-partials

An interrupted copy keeps partial files so that a retry can resume (see Resume an interrupted copy). A retry removes the partial files of each file it finishes, but only where it can tell that no other program has them open for writing: on Linux, on local filesystems such as ext4, XFS, Btrfs, ZFS and tmpfs. Temporary files from a killed copy can also remain beside files a local retry copies whole. When you no longer need to resume, or a retry left some, remove them with this command. Let copies into the directories finish first, and preview:

syq clean-partials --dry-run -v backup
syq clean-partials backup

Add --on server to clean a directory on an SSH server. For --results output, see Removal records.

Which files are removed

It removes regular files named .FILENAME.syq-tmp.RANDOM, left by copies, including descriptor copies, and .syq-s3-HASH.partial, left by S3 downloads, including any file of yours with such a name. It does not follow symlinks, and it leaves alone the .syq-stream-* files that descriptor copies of older versions left.

Neither this command nor pruning removes .syq-swap-... recovery entries. Each holds either a file that a copy moved aside while replacing it (after an interruption, or when another program wrote the same name at the same time) or a killed copy’s own unfinished entry. Once no copy is using the destination, recover what you need from them and delete them yourself.

syq clean-partials [OPTIONS] <TREE>...

Sources and selection

Argument / optionMeaning
--on <ENDPOINT>Removal endpoint ([USER@]HOST[:PORT]); omitted means local
-C, --cwd <DIR>Resolve relative trees from DIR at the removal endpoint
--root <DIR>Confine traversal beneath DIR
<TREE>...Directory trees to search

Preview and output

Argument / optionMeaning
-n, --dry-runPreview without changing files; remote setup may still install syq, and requested results files are still written
-v, --verbose...List removed paths
-q, --quietSuppress non-error messages

Performance tuning

Argument / optionMeaning
--performance-tuning <KEY=VALUE,...>Filesystem removal workers: workers=N

Progress and results

Argument / optionMeaning
--progressShow progress even when stderr is not a terminal
--no-progressNever show the human progress display
--results <FILE>Write the machine-readable NDJSON result stream to FILE (created fresh; an existing file is refused)
--results-fd <FD>Write the result stream to an inherited file descriptor the caller opened (e.g. --results-fd 3 3>run.ndjson); must be above 2

SSH and transport

Argument / optionMeaning
--syq-path <PATH>Run the remote syq at PATH instead of syq’s automatically installed copy
--no-bootstrapRun the syq found in the remote $PATH instead of syq’s automatically installed copy
--auth-from <auto|ssh|@NAME|HOST>Whose SSH access to use: this machine’s own (auto or ssh), or access approved by a receiving machine (@NAME) or SSH authorization provider (HOST)
--pscope <PATH>Use the scope that syq persist on --ephemeral created at PATH, with its own connections and settings

Help and version

Argument / optionMeaning
-h, --helpShow common usage and options
-V, --versionPrint version
--help-allShow all options and details