Parses /etc/backuppc/hosts
BackupPCHosts | Parses /etc/backuppc/hosts |
Reference | This lens tries to keep as close as possible to `man backuppc` where possible. |
License | This file is licenced under the LGPL v2+, like the rest of Augeas. |
Lens Usage | To be documented |
Configuration files | This lens applies to /etc/backuppc/hosts. |
Augeas Lenses | |
word | |
record | |
lns | |
filter |
This lens applies to /etc/backuppc/hosts. See filter.
let record = let moreusers = Build.opt_list [ label "moreusers" . store word ] Sep.comma in [ seq "host" . [ label "host" . store word ] . Util.del_ws_tab . [ label "dhcp" . store word ] . Util.del_ws_tab . [ label "user" . store word ] . (Util.del_ws_tab . moreusers)? . (Util.comment|Util.eol) ]
let word = /[^#, \n\t\/]+/
let record = let moreusers = Build.opt_list [ label "moreusers" . store word ] Sep.comma in [ seq "host" . [ label "host" . store word ] . Util.del_ws_tab . [ label "dhcp" . store word ] . Util.del_ws_tab . [ label "user" . store word ] . (Util.del_ws_tab . moreusers)? . (Util.comment|Util.eol) ]
let lns = ( Util.empty | Util.comment | record ) *