Requirements
Requirements
Understand the prerequisites before removing obsolete backup files.
custy cleanup backupsCategory
Quick Command
custy cleanup backupsOverviewâ
Backup Cleanup operates on backup files previously created by Custy.
Before removing old backups, ensure that backup files already exist and that your project configuration reflects the desired retention policy.
Prerequisites
Required Environment
Initialized Project
Existing Backup Files
Project Configuration
Writable Backup Directory
Recommended Preparation
Before running Backup Cleanup, consider the following:
- Verify that backup files exist.
- Review the configured backup retention count.
- Confirm that important backup files are no longer needed.
- Review your project's cleanup configuration.
Following these recommendations helps ensure that only obsolete backup files are removed.
Configuration
Backup Cleanup behavior is controlled through your project's
config.toml.
Typical settings include:
- Cleanup target.
- Backup retention count.
- Backup directories.
Command-line options may temporarily override these configuration values for the current execution.
What Is Not Required?
Backup Cleanup does not require:
- staged Git changes,
- commits,
- branches,
- tags,
- remote repositories.
Only the presence of backup files is required.
What's Next?
Continue to the Syntax page to learn how to remove commit backups, tag backups, or both using the available cleanup modes.