blob: ede7a95ebbaf51412d0b62d6aadf06ee696a8bcd (
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
|