Improved client script code for remote backups