Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Well, I'm not sure about firewire, however, when I use a USB drive/device, it is automatically added to my /mnt/removable. With your firewire drive disconnected from the computer, remove the /mnt/back from your /mnt folder. I believe there is a setting in kernel 2.6 for adding firewire support as a module. Try that to see if that is what your looking for
The firewire mounts fine.... works fine. My question is more about how to make sure that if I'm writing to a directory /backup - that the /backup directory being written to is on the device /dev/whateverdevice instead of just a directory I've created for a mount point.
Does that make sense?
I'm not saying this properly... not being clear, probably.
Originally posted by jjohnston62 The firewire mounts fine.... works fine. My question is more about how to make sure that if I'm writing to a directory /backup - that the /backup directory being written to is on the device /dev/whateverdevice instead of just a directory I've created for a mount point.
Does that make sense?
I'm not saying this properly... not being clear, probably.
Oh, I see.. you want to make sure that your files that you transfer are actually on the firewire drive? Well, I know with Linneighborhood, there is an option to "delete mount points on unmount". You may have to create a script to acheive that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.