Skip to content

Commit 435d2c0

Browse files
authored
Update backup-zip.sh
1 parent 302a990 commit 435d2c0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

backup-zip.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ if [ $? -eq 0 ]; then
2626
rm $backup_name
2727
scp -P $port $backup_name.enc $machine:$remote_destination
2828
if [ $? -eq 0 ]; then
29-
logger "[OK - Backup] ssh encrypted zip backup file transfer is successful"
29+
logger "[OK - Backup] SSH encrypted zip backup file transfer is successful"
30+
sha512 $backup_name.enc > $backup_name.enc.sha512
31+
chmod 0400 $backup_name.enc.sha512
3032
exit 0
3133
else
32-
logger "[FAILED - Backup] ssh encrypted zip transfer failed. Please check your backup script or system settings"
34+
logger "[FAILED - Backup] SSH encrypted zip transfer failed. Please check your backup script or system settings"
3335
exit 1
3436
fi
3537
else

0 commit comments

Comments
 (0)