backup

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

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

func Cmd() *cobra.Command

Cmd returns the "ctx system backup" subcommand.

Returns:

  • *cobra.Command: Configured backup subcommand

func Run

func Run(cmd *cobra.Command) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL