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

2018-09-11 Thread Kevin Korb via rsync
Since the backup dir is within the mountpoint your existing check: if [ ! -d ${BACKUP_DIR} ];then echo "Backup destination directory ${BACKUP_DIR} not exist." echo "run 'sudo mkdir ${BACKUP_DIR}' to create. " exit 1 fi Will work fine. If the disk isn't mounted then the backup dir w

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

2018-09-11 Thread Chris via rsync
On Tue, 2018-09-11 at 12:56 -0400, Kevin Korb via rsync wrote: > --timeout is about network connection timeouts. You aren't using the > network so it doesn't apply at all. Even if you were networking an > unmounted filesystem is an empty directory as far as rsync is > concerned > and rsync would

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

2018-09-11 Thread Kevin Korb via rsync
--timeout is about network connection timeouts. You aren't using the network so it doesn't apply at all. Even if you were networking an unmounted filesystem is an empty directory as far as rsync is concerned and rsync would treat it that way with no idea that you intended to have something mounte

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

[Bug 13609] New: rsync can be crazy slow on os x 10.13.6 when copying via usb drives

2018-09-11 Thread just subscribed for rsync-qa from bugzilla via rsync
https://bugzilla.samba.org/show_bug.cgi?id=13609 Bug ID: 13609 Summary: rsync can be crazy slow on os x 10.13.6 when copying via usb drives Product: rsync Version: 3.1.3 Hardware: All OS: All Sta