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

canon roots

List and manage registered roots.

Roots are added via scan.

# List all roots with file counts and last scan time
canon roots

# List roots at or beneath a specific path
canon roots /path/to/photos

# List only suspended roots
canon roots --suspended

# Set a comment on a root (omit text to clear)
canon roots comment id:1 "Old backup, possibly duplicates"
canon roots comment id:1

# Suspend a root (out of view and not acted on, until you unsuspend)
canon roots suspend id:1
canon roots suspend path:/path/to/photos

# Unsuspend a root
canon roots unsuspend id:1

# Remove a root by ID (files on disk are NOT deleted)
canon roots rm id:1

# Remove a root by path
canon roots rm path:/path/to/photos

# Skip confirmation prompt
canon roots rm id:1 --yes

Example output:

ID   ROLE        FILES  LAST SCAN         PATH
1    source      16635  2h ago            /path/to/photos
2    archive    169941  5d ago            /path/to/archive
3    source       1234  never             /path/to/backup (Old backup, possibly duplicates)

Suspending Roots

See Suspended roots for what suspension is. A suspended root is hidden from canon roots (use --suspended to list only suspended roots) and skipped by scan --all. When canon roots finds only suspended roots, it lists each one as suspended:

/path/to/photos suspended · canon roots unsuspend path:/path/to/photos

A report on a suspended place says so:

/path/to/photos suspended — set aside: here · canon roots unsuspend path:/path/to/photos or --global

With nothing else to list, the exit code is 1. An action shows the same sentence with rejected in place of set aside. A command that reads what Canon recorded says so once in its header:

Decision trail: /path/to/photos — /path/to/photos suspended · canon roots unsuspend path:/path/to/photos
CommandsAt a suspended place
ls, worklist, facts, coverage, surveySet aside. A live path named beside it still runs
sweepLeaves its places out of the ranking and says so in a footer
exclude, cluster generate and refresh, apply at either end, facts delete, note -m and --clear, scan, roots rm, roots retire, compare, survey --otherRejected by name before any plan or confirmation, so --yes and --dry-run state it too. Nothing is written
trail, roots story, note, roots retire --dry-runWork as usual, and say the root is suspended
import-factsSets aside the records naming a suspended source and counts them in its summary
exclude set-object, facts delete --on objectReach every copy of the content, and state how many are on suspended roots
pruneSkips suspended roots

Removing Roots

Removing a root removes its sources, facts, and notes from the database, and deletes no files on disk. Adding the path again makes a new root: its story starts empty, and its sources need enriching again. The earlier root’s decisions stay in the trail, shown by canon trail --global --all or a date view, but not by naming the path. See what survives removal.

Removal is recorded as a decision; add --reason to say why the root is going.

Root Specs

Several commands accept root specifications in two formats:

FormatExampleDescription
id:Nid:1By database ID (shown in canon roots output)
path:/...path:/path/to/photosBy exact path