Examples
Examples
Learn how to remove obsolete backup files using common Backup Cleanup scenarios.
custy cleanup backupsCategory
Quick Command
custy cleanup backupsOverviewâ
The following examples demonstrate common ways to clean obsolete backup files.
Depending on your project's configuration, Backup Cleanup can remove commit backups, tag backups, or both while preserving the configured number of recent backups.
Common Examples
Examples
Practical command examples.
Clean All Backup Files
Remove obsolete backup files using the configured cleanup settings.
custy cleanup backupsClean Commit Backups Only
Remove obsolete commit message backups only.
custy cleanup backups --type commitClean Tag Backups Only
Remove obsolete tag message backups only.
custy cleanup backups --type tagRetention Examples
Examples
Practical command examples.
Keep Five Backups
Preserve only the five newest backup files.
custy cleanup backups --keep 5Keep Twenty Backups
Retain a larger backup history.
custy cleanup backups --keep 20Global Options
Global options are specified before the command.
Examples include: Practical command examples. See what would happen without deleting backup files. Run Backup Cleanup with additional diagnostic information.Examples
Preview Cleanup
custy --dry-run cleanup backupsDebug Cleanup
custy --debug cleanup backups
What's Next?
Continue to the Output page to learn how Custy reports the results of a Backup Cleanup operation.