From c833f67b5970dcd4f7e69ddabe4cb15300ef6749 Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Fri, 17 Jun 2022 06:07:10 -0400 Subject: Consolidated encrypted USB scripts and removed redundancy Removed the mount-cryptusb and unmount-cryptusb scripts which are now redundant that mount-device and unmount-device handle LUKS devices. Consolidated encrypted USB script into sync-cryptusb, which now calls mount-device and unmount-device. --- .local/bin/cryptusb/sync-cryptusb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.local/bin/cryptusb/sync-cryptusb') diff --git a/.local/bin/cryptusb/sync-cryptusb b/.local/bin/cryptusb/sync-cryptusb index e9d3f1a..6ba2737 100755 --- a/.local/bin/cryptusb/sync-cryptusb +++ b/.local/bin/cryptusb/sync-cryptusb @@ -1,6 +1,8 @@ #!/bin/sh # Syncs important files to encrypted USB -rsync -avP --exclude=".steam*" --exclude="virtual_machines*" --exclude="media*" \ +mount-device && \ +rsync -avP --exclude="virtual_machines*" --exclude="media*" \ --exclude="*.iso" --exclude="*.qcow2" \ - $HOME/ /mnt/cryptusb/$USER@$(hostname)/ + $HOME/ /mnt/cryptusb/$USER@$(hostname)/ && \ +unmount-device -- cgit v1.2.3