use shell script for archiving