i have the rsync command down pat. i'm using:
rsync -aHPp /data/ /mnt/usb/data/
i've realized that the trailing backslash is important <smile>. to be consistent anyways.
i've gotten the cronjob down pat, including the mount, stop and umount commands. what i'm having problems with is this.
if the usb drive does not mount for whatever reason (either because it hasn't been plugged in, or for another reason), the copy is going to go to the folder that's there, which is going to fill up the native drive very quickly.
how can i avoid this?
i've tried the --no-dir command in rsync, hoping that it would prevent rsync from happening if the destination folder doesn't exist. but it doesn't seem to work.
the only other option i seem to have is to create a script that confirms that the mount has occurred before executing the rsync script. got any idea's?
thanks!!