From 9e82c96713989a7565eadac505b36e3dbe91cd5a Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sun, 11 Jun 2023 07:56:17 -0400 Subject: Added, removed, renamed scripts --- .local/bin/sync-cryptusb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 .local/bin/sync-cryptusb (limited to '.local/bin/sync-cryptusb') diff --git a/.local/bin/sync-cryptusb b/.local/bin/sync-cryptusb new file mode 100755 index 0000000..46daef9 --- /dev/null +++ b/.local/bin/sync-cryptusb @@ -0,0 +1,8 @@ +#!/bin/sh +# Syncs important files to encrypted USB + +mount-device && \ +rsync -avP --delete-after --exclude="virtual_machines*" --exclude="media*" \ + --exclude="*.iso" --exclude="*.qcow2" --exclude="*.zip" --exclude="*.img"\ + $HOME/ /mnt/cryptusb/$USER@$(hostname)/ +unmount-device -- cgit v1.2.3