On Sun, 18 Nov 2012 15:51:28 -0000, li...@getiton.myzen.co.uk said: > #!/bin/bash > #needs the if exsits thing but haven't got the time right now if ! [ -e /mnt/cnbackup ]; then echo "cnbackup not mounted" exit 1 fi
> #needs running as root if [ "$(whoami)" != "root" ];then echo "not root" exit 1 fi > rm -rf /mnt/cnbackup/container # better, as others suggested, would be: touch /path/to/container > rsync -r -n -t -v -progress -s /mnt/cnrn/ /mnt/cnbackup -- We're looking for smart Linux people: http://www.tiger-computing.co.uk/jobs -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --------------------------------------------------------------