On Monday 06 February 2006 17:50, Arno Lehmann wrote: > Hello, > > On 2/6/2006 4:20 PM, John Demme wrote: > > I'm trying to get Bacula to backup to my removable SATA hard drive. I > > want bacula to manage whether of not the drive is mounted. Thus, I have > > the following bacula-sd device area: > > > > Device { > > Name = FileStorage > > Media Type = RemovableFile > > Archive Device = /dev/sdg1 > > oh oh... > > > Requires Mount = yes > > Mount Point = /mnt/backup1 > > Mount Command = "/bin/mount /mnt/backup1" > > Unmount Command = "/bin/umount /mnt/backup1" > > Write Part Command = "/usr/bin/true" > > > > LabelMedia = yes; # lets Bacula label unlabeled media > > Random Access = Yes; > > AutomaticMount = yes; # when device opened, read it > > RemovableMedia = yes; > > AlwaysOpen = no; > > } > > > > > > However, when I try to label the drive the following hits me: > > > > *label > > Using default Catalog name=MyCatalog DB=bacula > > Automatically selected Storage: File > > Enter new Volume name: Daily001 > > Defined Pools: > > 1: Daily > > 2: Monthly > > Select the Pool (1-2): 1 > > Connecting to Storage daemon File at sophy:9103 ... > > Sending label command for Volume "Daily001" Slot 0 ... > > 3910 Unable to open device "FileStorage" (/dev/sdg1): ERR=The media in > > the device "FileStorage" (/dev/sdg1) is not empty, please blank it > > before writing anything to it. > > > > Label command failed for Volume Daily001. > > Do not forget to mount the drive!!! > > > > > > So I guess Bacula thinks I'm backing up to a DVD or CD since I'm using > > the requires mount = yes option. > > > > What am I doing wrong? > > You can't achieve what you want like this. > > The requires mount options and related stuff heavily depend on the write > part command program, so first, you'd need a real program that does what > dvd-handler does with DVDs - writing part files to the device, mainly. > > Unless you're ready to read through the SD code - especially the parts > regarding DVD writing - and creating a customized write part command > program, what you want to do is not easily possible. > > There have been some suggestions as to how effectively use removable > hard disk storage recently, you might want to search the archives for > these. Also, Kern has started thinking about how to handle removable > disks, so it might be that he comes up with something some day.
It is now working for some time in version 1.39.5. However, I haven't found the time to document it yet, and I don't yet recommend 1.39.5 for any serious production backups ... > > And, of course, you can always suggest how Bacula should handle this > sort of stuff, and also submit code :-) > > Arno > > > Thanks, > > John Demme ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users