pub fn backup_queue(path: &Path, backup_dir: &Path) -> Result<PathBuf>
Create a backup of the queue file before modification. Returns the path to the backup file.