Documentation
¶
Overview ¶
Package backup implements the ctx system backup subcommand.
It creates timestamped tar.gz archives of project context and global Claude Code data, with optional SMB share copying.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cmd ¶
Cmd returns the "ctx system backup" subcommand.
Returns:
- *cobra.Command: Configured backup subcommand
func Run ¶
Run executes the backup command logic.
Creates timestamped tar.gz archives of project context and/or global Claude Code data. Optionally copies archives to an SMB share.
Parameters:
- cmd: Cobra command for output and flag access
Returns:
- error: Non-nil on invalid scope, home directory lookup failure, SMB parse error, or archive creation failure
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.