Skip to main content

rotate

Function rotate 

Source
pub fn rotate(workload_path: &Path) -> Result<BackupPaths>
Expand description

Run the backup rotation: rotate .bak → .bak.prev, copy workload → .bak. Caller subsequently writes the new content to temp and atomically renames it over workload. See commit_temp.

Returns the BackupPaths so the caller doesn’t have to re-derive them.