modified script to perform backup of the archive