Skip to main content

prune_old_backups

Function prune_old_backups 

Source
pub fn prune_old_backups(project_root: &Path) -> Result<usize>
Expand description

Prune backup sessions older than 7 days.

Uses the creation timestamp embedded in the session directory name (nanoseconds since UNIX epoch) instead of filesystem mtime, which can be updated by file operations like patchloom undo.