Re: Ensuring that rsync doesn't try to write to an unmounted drive

2018-09-11 Thread Chris via rsync
/backup2' df -h | grep $mount_point > /dev/null if [ $? -eq 0 ] then rsync. echo "mount point $mount_point exists, rsync started" else echo "Error: mount point $mount_point does not exist, rsync operation skipped" So, would it be ok to leave it as is or do I ne

Ensuring that rsync doesn't try to write to an unmounted drive

2018-09-11 Thread Chris via rsync
I have a script that runs nightly as a cronjob to backup my drive to a USB drive https://pastebin.com/yivqrGUC On the command line I use the --timeout option. Is this sufficient to ensure that if the external drive somehow becomes unmounted that rsync will gracefully fail without trying to write to