From 9eb71b3ade2d1e6e0f7d3fa4f1d55a136d68d39f Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Fri, 20 Jul 2018 17:30:55 -0400 Subject: Added backup scripts --- bin/wd-bak | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bin/wd-bak (limited to 'bin/wd-bak') diff --git a/bin/wd-bak b/bin/wd-bak new file mode 100755 index 0000000..95b122e --- /dev/null +++ b/bin/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/wd/* /media/wd-bak + +sudo umount /media/wd-bak +sudo cryptdisks_stop wd-bak +sudo cryptdisks_stop wd-bak-work -- cgit v1.2.3