From 2b5a5bcb4e0cb137425f49281d02380705e1d972 Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 19 Dec 2002 14:04:25 +0000 Subject: [PATCH] added cleanup rm --- bin/deploy-dms.sh | 1 + bin/dms-backup.sh | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/deploy-dms.sh b/bin/deploy-dms.sh index f1729cf..f9d979a 100644 --- a/bin/deploy-dms.sh +++ b/bin/deploy-dms.sh @@ -11,3 +11,4 @@ cvs update # sed the version with today's date cat $version | sed 's#@build-date@#`date +%Y%m%d`g' > $tmp mv $tmp $version +rm $tmp diff --git a/bin/dms-backup.sh b/bin/dms-backup.sh index 6eed34c..e7cef0b 100755 --- a/bin/dms-backup.sh +++ b/bin/dms-backup.sh @@ -20,7 +20,7 @@ mkdir -p $LOCAL_MOUNT # mount the server mount_smbfs -N "$BACKUP_SERVER" $LOCAL_MOUNT -# tar onto the local mount point +# tar up the cvs repository archive=mrc_dms_`date +%Y-%m-%d`.tgz tar czvf /tmp/$archive $BACKUP_FROM @@ -30,6 +30,9 @@ cp /tmp/$archive "$BACKUP_TO" # check that its there ls -al "$BACKUP_TO" +# clean up +rm /tmp/$archive + # disconnect twice (for safety and because the first try consistently doesn't work) umount $LOCAL_MOUNT umount $LOCAL_MOUNT -- libgit2 0.21.4