complete the archive log script