ARCLOG.EXE copyright 1996, 1997 Herbert Bushong Log Archiver is a simple, down-n-dirty utility to archive various log files into daily ZIP files. AT the end of each month, it archives the daily ZIP files into a monthly ZIP file. Both a DOS and OS/2 version are included, and do exactly the same thing, though if you use the OS/2 version, I'd recommend using InfoZip's ZIP instead of PKZIP. Standard Disclaimer: This program is freeware, but all rights are retained. I make no guarantees as to the useability of this program, other than taking up space. By using this program you accept all responsibility for it's actions. ============ INSTALLATION ============ - First ensure that PKZIP.EXE or ZIP.EXE is in you path. - Extract the archive to the directory of your choice. The ARCLOG.EXE file is the only file used, so if you place it in your path, you can call it from anywhere. That's it! ============ USING ARCLOG ============ The command line for running ARCLOG is ARCLOG filespec zippath [-d] [-z] filespec = the name (wildcards allowed) of the log file to archive. Only one filespec can be passed, to archive others, just execute ARCLOG multiple times with different filespec's. You can include drive and path information in the filespec. zippath = this is the path to place the archives in. IT MUST EXIST. -d = using this parameter causes arclog to tell PKZIP/ZIP to move the files, Deleting them after zipping them. -z = using this parameter causes arclog to call InfoZip's ZIP.EXE instead of PKZIP.EXE The daily archives have the name yyyymmdd.ZIP The monthly archives have the name yyyymm.ZIP where yyyy = year mm = month dd = day for October 26, 1997 and the month of October, the filenames would be: daily: 19971026.ZIP monthly: 199710.ZIP ======== CAUTIONS ======== - You should not run ArcLog more than once a day on any filespec, but especially if you are using the -d parameter. Doing so would cause the previous run's data to be lost. - Also, the monthly archiving forces "moving". A second run on the last day of the month could cause loss of the data for that day. - The monthly archives are created on the last day of the month. If the utility isn't run on that day, then a monthly archive will not get created for that month. ======== EXAMPLES ======== ARCLOG \LOGS\SOMELOGS.* \ARCHIVE would create an archive in the \ARCHIVE directory, and add all files with the base name of SOMELOGS in the LOGS directory to the archive. ARCLOG .\SOMELOGS.* \ARCHIVE Same as above, but would look in the current directory for the log files. ARCLOG \LOGS\SOMELOGS.* . -d Same as the first example but would create the archive in the curent directory, and would move the files into the archive. ARCLOG \LOGS\SOMELOGS.* \ARCHIVE -z Same as the first example but would call ZIP instead of PKZIP. ARCLOG \LOGS\SOMELOGS.* \ARCHIVE -d -z Same as the first example but would call ZIP instead of PKZIP and move the files into the archive.