#!/bin/csh -f
#
# Utility to merge the incremental and backup directories
#
#
# The list of files to be backed up are listed in 'incremental_list'
#
# Tom Coppeto
# 5/25/88
#

set DEST=/mit/matisse_backup/incremental/Writable
set DEST2=/mit/matisse_backup/backup

echo `date`: starting merge 

foreach file (`cat /mit/matisse_backup/incremental.list`)
	cp $DEST/$file.Z $DEST2/$file.Z       
        if (! $status) then
 	   echo `date`: copied $file 
        else
           echo `date`: error copying $file
        endif
end

echo `date`: merge done. 	
