Clarify Mount Point Usage
Using a hotswap firewire (IEEE1394)-based drive with rsnapshot (rsync) to do disk-based backups. This all works fine.
However, my knowledge on proper use of mount points isn't fine. <G>
I have defined a mount point as /mnt/back - through the rsync script (being kicked off by cron), I do a mount on the hot swap drive (dev/sda1) before doing the sync in the script, using the following
mount /dev/sda1 /mnt/back
however, if something happens that /dev/sda1 is unavailable, I do not want it to write to the /mnt drive, thus filling up the partition and potentially crashing the server.
Question is this - what would be the proper method of defining the mount point, or script handling, so that if the device /dev/sda1 wasn't mounted, the sync wouldn't happen?
Or is this a proper use of mount points, etc?