blob: f824fba35cb339a173cf778e0d1b41b67f90f852 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
|