3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
6 # Bacula interface to get device freespace
8 # If you set in your Device resource
10 # Free Space Command = "path-to-this-script/freespace %a"
11 # you will have the following input to this script:
14 # freespace "archive-device"
34 $cmd $1 | tail -1 | awk '{ print $4 }'