Corin's backup scripts
This commit is contained in:
20
bash/remount-all
Normal file
20
bash/remount-all
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
# /usr/local/bin/
|
||||
# remount-all by htrigg
|
||||
#
|
||||
# mount and decrypt all drives after a power outage
|
||||
#
|
||||
# v1.0 released 05/01/2020
|
||||
# v2.0 released 02/06/2022
|
||||
# v3.0 released 10/03/2025 - moved to sdb1
|
||||
|
||||
echo "Mounting Coriakin..."
|
||||
mount /media/coriakin
|
||||
echo "Opening the crypt..."
|
||||
cryptsetup luksOpen /dev/sdb1 corin
|
||||
echo "Mounting Corin..."
|
||||
mount /dev/mapper/corin /media/corin
|
||||
df -h | awk '$6 ~ "media"'
|
||||
ls -latr /media/corin/BACKUP
|
||||
|
||||
Reference in New Issue
Block a user