Hello, I try use bacula 5.0.3 on suse linux to backup lvm snapshots. Basically, I create a lvm snapshot called /dev/vmguests/backup using the RunScript directive. Unfortunately, this is a sym link to /dev/dm-6. I cannot be sure it is always dm-6. I would like to follow the sym link and backup /dev/dm-6 as raw device.
The hints I found while googling are are not working (like appending /. to the File directive) or obscure (like using bash scripting to resolve File names). I cannot simply mount /dev/dm-6 to somewhere because the contents is a partitioned raw device of a kvm instance. Maybe it is possible resolve the link using a bash script in the file directive but I have not found information about when the File directive will be evaluated relative to RunScript. Has anyone a working solution for lvm snapshots? The Job currently looks very plainly like this: FileSet { Name = FsVMMyDms # Adjust to VM Include { Options { compression = GZIP signature = SHA1 sparse = yes } File = /dev/vmguests/backup } } Job { Name = JbBcVMMyDms # Adjust to VM Enabled = yes JobDefs = JdVMGuest FileSet = FsVMMyDms # Adjust to VM Schedule = ScMondays # Adjust to VM RunScript { RunsWhen = Before Command = "/usr/local/tbin/mountbackup.sh vmguests mydms" # Adjust to VM } RunScript { RunsWhen = After Command = "/usr/local/tbin/umountbackup.sh vmguests" } } Thank you all, Tobias ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-copy2 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users