Hi, I'm backing up to harddisk and I want to have the filesystem mounted prior to the backup and unmounted after the Job ran successfull. In my Storage daemon configuration I have:
Device { Name = FileStorage Media Type = File # Archive Device = /mnt/files/.bacula Archive Device = /mnt/backup LabelMedia = yes; # lets Bacula label unlabeled media Random Access = Yes; AutomaticMount = yes; # when device opened, read it RemovableMedia = yes; AlwaysOpen = no; Requires Mount = yes Mount Point = /mnt/backup Mount Command = "/sbin/mount /mnt/backup" Unmount Command = "/sbin/umount /mnt/backup" } Bu the filesystem gets not unmounted automatically. Were is the error? I'm getting the following error message: 22-Dec 16:37 backup-sd JobId 6185: Warning: mount.c:219 Open device "FileStorage" (/mnt/backup) Volume "Bacula-0002" failed: ERR=dev.c:532 Could not open: /mnt/backup/Bacula-0002, ERR=No such file or directory 22-Dec 16:37 backup-sd JobId 6185: Please mount Volume "Bacula-0002" or label a new one for: Job: client-backup-catalog.2009-12-22_16.36.40_21 Storage: "FileStorage" (/mnt/backup) Pool: Bacula-Pool Media type: File bacula-sd runs as user "bacula" and mounting/unmounting with this user works: r...@nudel etc> su - bacula -c "/sbin/mount /mnt/backup" r...@nudel etc> mount | grep backup /dev/ufs/backup on /mnt/backup (ufs, local, nosuid, soft-updates, mounted by bacula) r...@nudel etc> su - bacula -c "/sbin/umount /mnt/backup" r...@nudel etc> mount | grep backup Exit 1 r...@nudel etc> -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/ ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users