Skip to main content

Syntax

Syntax

Recommended

Learn how to create backups for Custy's template resources.

Commandcusty backup

Category

Backup

Quick Command

custy backup commit

syntaxbackuptemplates

Overview​

The backup command provides three subcommands that determine which template resources should be backed up.

Each subcommand performs a different backup operation while sharing the same overall behavior.



Command Syntax

Command Syntax

Available command syntax and usage examples.

Backup Commit Template

Create a backup of the configured commit message template.

bash
custy backup commit

Backup Tag Template

Create a backup of the configured tag message template.

bash
custy backup tag

Backup All Templates

Create backups for both commit and tag message templates.

bash
custy backup all

Subcommands

SubcommandPurpose
commitBackup the configured commit message template.
tagBackup the configured tag message template.
allBackup both template files in a single operation.

Each subcommand creates timestamped backup files inside the configured backup directories.


Workflow Integration

The backup command can be executed directly when you only want to create backups.

Backup operations can also participate in larger Custy workflows.

Those workflow-oriented backup stages are documented in the Run command documentation.



What's Next?

Continue to the Options page to learn about the command-line options available for each backup subcommand.