Commit f5cbd2c5080ca155af68b345ff856f09ee55ce9a

Authored by Michael Joseph
1 parent b5253943

added explicit paths to binutils for cron


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@45 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 10 additions and 10 deletions
bin/dms-backup.sh
@@ -11,30 +11,30 @@ BACKUP_FROM=/usr/local/cvsroot @@ -11,30 +11,30 @@ BACKUP_FROM=/usr/local/cvsroot
11 BACKUP_TO=/tmp/backup/Backups\ to\ tape/ 11 BACKUP_TO=/tmp/backup/Backups\ to\ tape/
12 12
13 # check that we're not mounted already 13 # check that we're not mounted already
14 -umount $LOCAL_MOUNT 14 +/sbin/umount $LOCAL_MOUNT
15 15
16 # clear the backup mount point 16 # clear the backup mount point
17 -rm -rf $LOCAL_MOUNT  
18 -mkdir -p $LOCAL_MOUNT 17 +/bin/rm -rf $LOCAL_MOUNT
  18 +/bin/mkdir -p $LOCAL_MOUNT
19 19
20 # mount the server 20 # mount the server
21 -mount_smbfs -N "$BACKUP_SERVER" $LOCAL_MOUNT 21 +/sbin/mount_smbfs -N "$BACKUP_SERVER" $LOCAL_MOUNT
22 22
23 # tar up the cvs repository 23 # tar up the cvs repository
24 archive=mrc_dms_`date +%Y-%m-%d`.tgz 24 archive=mrc_dms_`date +%Y-%m-%d`.tgz
25 -tar czvf /tmp/$archive $BACKUP_FROM 25 +/usr/bin/tar czvf /tmp/$archive $BACKUP_FROM
26 26
27 # copy to backup server 27 # copy to backup server
28 -cp /tmp/$archive "$BACKUP_TO" 28 +/bin/cp /tmp/$archive "$BACKUP_TO"
29 29
30 # check that its there 30 # check that its there
31 -ls -al "$BACKUP_TO" 31 +/bin/ls -al "$BACKUP_TO"
32 32
33 # clean up 33 # clean up
34 -rm /tmp/$archive 34 +/bin/rm /tmp/$archive
35 35
36 # disconnect twice (for safety and because the first try consistently doesn't work) 36 # disconnect twice (for safety and because the first try consistently doesn't work)
37 -umount $LOCAL_MOUNT  
38 -umount $LOCAL_MOUNT 37 +/sbin/umount $LOCAL_MOUNT
  38 +/sbin/umount $LOCAL_MOUNT
39 39
40 exit 40 exit