Skip to main content

create_backup

Function create_backup 

Source
pub fn create_backup(
    source: &Path,
    backup_dir: &Path,
    version: &str,
) -> Result<PathBuf>
Expand description

Create a backup of the current binary.

Copies the binary at source to backup_dir with a versioned filename. Returns the path to the backup file.