Skip to main content

read

Function read 

Source
pub fn read(src: &Path, work: &Path, daemon: &Path) -> Result<Backup, Refusal>
Expand description

Reads and checks everything about the backup, writing nothing.

ยงErrors

Refuses, with exit code 1, on any of: no log, an empty log, a log the daemon will not verify, no policy in either shape, a missing required policy file, a secret anywhere in the backup, a repos.list naming nothing, or a repository with no bundle.