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.