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 |
# |
# |
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, |