Script for maintaining a local archive of backup files from a remote system