I would move the backup file path into a method like the one I created for remote_path_to(file).