diff options
author | Ryan Kavanagh <rak@rak.ac> | 2021-12-13 17:23:42 -0500 |
---|---|---|
committer | Ryan Kavanagh <rak@rak.ac> | 2021-12-13 17:23:42 -0500 |
commit | e1096db47d332f2e4bfb4f38d262bb94e69d9ad5 (patch) | |
tree | 1b26b1fedacd307a115cb3a963c8cc8a60a18e96 /bin/executable_wd-bak | |
parent | typo (diff) |
set exec and stuff
Diffstat (limited to 'bin/executable_wd-bak')
-rwxr-xr-x | bin/executable_wd-bak | 14 |
1 files changed, 14 insertions, 0 deletions
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 |