> And, 3) How do I make sure that it will back up to the disk in the
> Ultrabay and not to the mount point?
Here's a kludge that will prevent root from making a directory, by
setting the "immutable bit" on a file. There may be an easier way,
but this will cause an error/fail rather than letting root do its
resistance-is-futile power-tool thing.
Configure your rdiff-backup target directory to be
/media/disk2/backup/
With the disk unmounted, as root, create the *file* (not
directory):
/media/disk2/backup
You can do that with touch, or perhaps you use vi to write
a little something into it explaining what it is for.
Do a "chmod 444 /media/disk2/backup" to set it to read only,
and do a "chattr +i /media/disk2/backup" so it is immutable.
That means that not even root can change it unless you do a
"chattr -i /media/disk2/backup" first.
When you mount the backup volume on /media/disk2/, it ignores
the files that are in it, and rdiff-backup will create or use
the directory /media/disk2/backup/mybackup/ as its target.
If the drive does not get mounted, then that pesky file will
frustrate rdiff-backup's evil plan to make a subdirectory,
and it will emit an error message and die.
Immutable bits are nice to know about. Used properly, they
can prevent a lot of errors. Without documenting their use,
however, they can result in a lot of confusion.
Alternative (2), of course, is to locate the programmer who
thought it was a good idea to automatically create a directory
on a mount point without checking. Then gently flog them -
unless, of course, they enjoy floggings. If rdiff-backup calls
chattr -i to remove immutable bits before creating directories,
you have my permission to strap them to a chair and play Slim
Whitman's "Indian Love Call" until their head explodes.
Keith
--
Keith Lofstrom [email protected] Voice (503)-520-1993
KLIC --- Keith Lofstrom Integrated Circuits --- "Your Ideas in Silicon"
Design Contracting in Bipolar and CMOS - Analog, Digital, and Scan ICs
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug