]> andersk Git - moira.git/commitdiff
moved backups to new servers
authormar <mar>
Thu, 16 Jul 1992 16:49:10 +0000 (16:49 +0000)
committermar <mar>
Thu, 16 Jul 1992 16:49:10 +0000 (16:49 +0000)
backup/nightly.sh

index 43d31052ad3fa0ab62528d0b7275f5d6abeed69b..557fde22f7af91f3655dcf24bd351d14925b4004 100644 (file)
@@ -7,7 +7,7 @@ BKUPDIRDIR=/u3/sms_backup
 PATH=/bin:/usr/bin:/usr/ucb:/usr/new; export PATH
 chdir ${BKUPDIRDIR}
 
-# /u1/sms/bin/counts </dev/null        
+# /moira/bin/counts </dev/null 
 
 if [ -d in_progress ] 
 then
@@ -24,7 +24,7 @@ else
        echo "Cannot create backup directory"
        exit 1
 fi
-if /u1/sms/bin/mrbackup ${BKUPDIRDIR}/in_progress/
+if /moira/bin/mrbackup ${BKUPDIRDIR}/in_progress/
 then
        echo "Backup successful"
 else
@@ -32,6 +32,8 @@ else
        exit 1
 fi
 
+/moira/bin/report.sh ${BKUPDIRDIR}/in_progress
+
 if [ -d stale ]
 then
        echo -n "Stale backup "
@@ -51,13 +53,13 @@ echo
 echo -n "deleting last backup"
 rm -rf stale
 echo "Shipping over the net:"
-su smsdba -fc "rdist -c ${BKUPDIRDIR} themis:/site/sms/sms_backup"
-su smsdba -fc "rdist -c ${BKUPDIRDIR} odysseus:/site/sms/sms_backup"
+rcp -rp ${BKUPDIRDIR}/* oregano:/var/moira
+rcp -rp ${BKUPDIRDIR}/* plover:/backup/moira
 
-if [ "`/usr/bin/find /u1/sms/critical.log -mtime -1 -print`" = "/u1/sms/critical.log" ]; then
+if [ "`/usr/bin/find /moira/critical.log -mtime -1 -print`" = "/moira/critical.log" ]; then
        (/bin/echo "To: dbadmin";\
         /bin/echo "Subject: Moira update status";\
-        /usr/ucb/tail /u1/sms/critical.log) | /bin/mail dbadmin
+        /usr/ucb/tail /moira/critical.log) | /bin/mail dbadmin
 fi
 
 exit 0
This page took 0.063295 seconds and 5 git commands to generate.