Oh, sorry, I really got confused with this mail. Hello,
thank you for the comments regarding readlink. Unfortunately, it does not work :( if I do: bash>readlink /dev/vmguests/backup I get: ../dm-6 I was suspicous about the relative path but this can be healed by adding -f: bash>readlink -f /dev/vmguests/backup /dev/vmguests/dm-6 With this new weapon I changed the File = directive as described in your mails: File = "| readlink /dev/vmguests/backup". I open bconsole, do reload, do run, select job ... and get 89 bytes backuped. ( I tested also the -f variant) I cross checked by changing File= "/dev/dm-6". This saves 4.4GB of data. My guess is that the link does not yet exist when the Fileset is parsed. How can I find out about this. Can I raise the log level to see the parsed version of File= ? Thank you for any advice, Tobias Am 19.09.2011 10:35, schrieb Konstantin Khomoutov: > On Sun, 18 Sep 2011 17:47:34 +0200 > Tobias Schenk<tob...@die-schenks.net> wrote: > >> 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 > You can use the `readlink` command to resolve the symlink. > >> 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 >> } >> } > You can try to use something like > > File = "| readlink /dev/vmguests/backup" > > to dynamically read that file containing the real device name. ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users