Hi Bruno,
Happy New Year!
what version of Bareos do you use?
I try to use the same on 15.2.3 on Centos6:
Storage {
@|"sh -c 'idx=$(cat /tmp/bkp_idx 2>/dev/null || echo 0) ; echo -n Device =
DiskDeviceIncr ; echo $((($idx % 5) + 1)) | tee /tmp/bkp_idx'"
}
but when I try to validate the config, it fails with following error, although
the output generated by the script is correct. I tried replacing the @| line
with :"Device = DiskDeviceIncr2" the exact output of script, and it works.
[root@muc1pro-backup-1 bareos]# bareos-dir -t -v
bareos-dir: ERROR TERMINATION at res.c:575
Config error: Could not find config Resource "Device" referenced on line 1 :
Device = DiskDeviceIncr2
: line 1, col 24 of file |sh -c 'idx=$(cat /tmp/bkp_idx 2>/dev/null
|| echo 0) ; echo -n Device = DiskDeviceIncr ; echo $((($idx % 5) + 1)) | tee
/tmp/bkp_idx'
Device = DiskDeviceIncr2
Thanks,
Robert
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.