/[dtapublic]/projs/trunk/projs/20161029_server_scripts_automaint_cron/backup_ashley_david_pers_full
ViewVC logotype

Diff of /projs/trunk/projs/20161029_server_scripts_automaint_cron/backup_ashley_david_pers_full

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 71 by dashley, Sat Nov 5 11:07:06 2016 UTC revision 76 by dashley, Sat Nov 5 23:16:39 2016 UTC
# Line 34  echo "Performing full backup of all Dave Line 34  echo "Performing full backup of all Dave
34  #especially a failed cd followed by a mass delete.  #especially a failed cd followed by a mass delete.
35  cd /root/cronjob_sandbox  cd /root/cronjob_sandbox
36  #  #
37    #Remove the existing old backup.  This is because don't have the storage and don't want to purchase
38    #a new SSD, so delete the old before making the new.
39    rm -fR /hl/baks/ashley_david_personal_01/full_monthly/*
40    #
41  #Make the directory.  #Make the directory.
42  mkdir /hl/baks/ashley_david_personal_01/full_monthly/${1}${5}${6}_${10}${13}${14}  mkdir /hl/baks/ashley_david_personal_01/full_monthly/${1}${5}${6}_${10}${13}${14}
43  #  #
# Line 86  if [ -d /hl/baks/ashley_david_personal_0 Line 90  if [ -d /hl/baks/ashley_david_personal_0
90     echo "===== BACKUP FILE SHA512 MESSAGE DIGESTS ====="     echo "===== BACKUP FILE SHA512 MESSAGE DIGESTS ====="
91     cat sha512sums.txt     cat sha512sums.txt
92     #     #
93     cd ..     #Commented out because now deleting old before making new.  There will
94     rm -fR `ls -1t | sed -e '2,$!d'`     #be only one directory.
95       #cd ..
96       #rm -fR `ls -1t | sed -e '2,$!d'`
97  fi  fi
98  #  #
99  #Change to a safe working directory in case something goes wrong,  #Change to a safe working directory in case something goes wrong,

Legend:
Removed from v.71  
changed lines
  Added in v.76

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25