backup

Function backup 

Source
pub fn backup(path: &Path) -> Result<()>
Expand description

Creates a backup copy of a file with a timestamped extension.

§Arguments

  • path - The file to back up

§Returns

Ok(()) if the backup was created or the file doesn’t exist.