Corin's backup scripts

This commit is contained in:
2025-03-10 19:28:44 +10:30
parent 41d987cae6
commit 78286622a8
4 changed files with 76 additions and 0 deletions

20
bash/remove-corin Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
# /usr/local/bin/
# remove-corin by htrigg
#
# unmount and secure data
# run using 'sudo remove-corin'
#
# v1.0 released 0/01/2020
if [[ $UID != 0 ]]; then
echo "Please run this script with sudo:"
echo "sudo $0 $*"
exit 1
fi
echo "Unmounting Corin..."
umount /media/corin
echo "Closing the crypt..."
cryptsetup luksClose corin