]> andersk Git - moira.git/commitdiff
Found this version on Moira server. Has various fixes/adaptations.
authordkk <dkk>
Thu, 27 Oct 1994 19:32:58 +0000 (19:32 +0000)
committerdkk <dkk>
Thu, 27 Oct 1994 19:32:58 +0000 (19:32 +0000)
backup/nightly.sh

index 02e0f3f41b16d4a0364261fbb060f3ebdd935cc9..de0121c21bb285fe7e420bfb669bdb4e2a9eb71e 100644 (file)
@@ -3,8 +3,9 @@
 #      Nightly script for backing up Moira.
 #
 #
-BKUPDIRDIR=/u3/sms_backup
+BKUPDIRDIR=/u1/backups
 PATH=/bin:/athena/bin:/usr/athena/bin:/usr/bin:/usr/ucb:/usr/new; export PATH
+. /usr/ingres/sqluser.profile
 chdir ${BKUPDIRDIR}
 
 # /moira/bin/counts </dev/null 
@@ -24,6 +25,7 @@ else
        echo "Cannot create backup directory"
        exit 1
 fi
+chmod 750 in_progress
 if /moira/bin/mrbackup ${BKUPDIRDIR}/in_progress/
 then
        echo "Backup successful"
@@ -53,8 +55,8 @@ echo
 echo -n "deleting last backup"
 rm -rf stale
 echo "Shipping over the net:"
-rcp -rp ${BKUPDIRDIR}/* oregano:/var/moira
-rcp -rp ${BKUPDIRDIR}/* plover:/backup/moira
+rcp -rp ${BKUPDIRDIR}/* oregano:/u1/moira
+rcp -rp ${BKUPDIRDIR}/* nessus:/backup/moira
 
 if [ "`/usr/bin/find /moira/critical.log -mtime -1 -print`" = "/moira/critical.log" ]; then
        (/bin/echo "To: dbadmin";\
This page took 0.818807 seconds and 5 git commands to generate.