BackupPCHosts

Parses /etc/backuppc/hosts

Summary
BackupPCHostsParses /etc/backuppc/hosts
ReferenceThis lens tries to keep as close as possible to `man backuppc` where possible.
LicenseThis file is licenced under the LGPL v2+, like the rest of Augeas.
Lens UsageTo be documented
Configuration filesThis lens applies to /etc/backuppc/hosts.
Augeas Lenses
word
record
lns
filter

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.  See filter.

Augeas Lenses

word

let word = /[^#, \n\t\/]+/

record

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) ]

lns

let lns = ( Util.empty | Util.comment | record ) *

filter

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 ) *
Close