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

Save files and directories as a snapshot archive.

Creates a .snap.tar.gz file containing the specified paths. Source paths are stored in the gzip comment for reliable restoration.

Examples:

  1. Save a directory: cbp snap save ~/.config/nvim

  2. Save multiple directories to a named archive: cbp snap save ~/.config/nvim ~/.config/alacritty -o configs.snap.tar.gz

  3. Exclude patterns with glob: cbp snap save ~/.config/nvim -x "**/plugged/**" -x "*.swp"

  4. Save a single file: cbp snap save ~/.bashrc

  5. Verbose output: cbp snap save -v ~/.config/nvim

  6. Windows (PowerShell): cbp snap save $env:APPDATA/alacritty -o alacritty.snap.tar.gz

  7. Windows (CMD): cbp snap save %APPDATA%\alacritty -o alacritty.snap.tar.gz