From e1096db47d332f2e4bfb4f38d262bb94e69d9ad5 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Mon, 13 Dec 2021 17:23:42 -0500 Subject: set exec and stuff --- bin/executable_wd-bak | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bin/executable_wd-bak (limited to 'bin/executable_wd-bak') diff --git a/bin/executable_wd-bak b/bin/executable_wd-bak new file mode 100755 index 0000000..f824fba --- /dev/null +++ b/bin/executable_wd-bak @@ -0,0 +1,14 @@ +#!/bin/sh + +wd-mount + +if ! mount | grep /media/wd-bak > /dev/null ; then + echo "/media/wd-bak not mounted" + exit 1 +fi + +rsync -avhHP --delete-after /media/t/ /media/wd-bak + +sudo umount /media/wd-bak +sudo cryptdisks_stop wd-bak +sudo cryptdisks_stop wd-bak-work -- cgit v1.2.3