aboutsummaryrefslogblamecommitdiff
path: root/bin/wd-bak
blob: ede7a95ebbaf51412d0b62d6aadf06ee696a8bcd (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                  
                                                    



                                
#!/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