Added backup_file function