fine tuning and logging

This commit is contained in:
jandre 2021-02-16 20:01:52 +01:00
parent 808d86d4fc
commit 9492d3ba63

View File

@ -92,7 +92,9 @@ func RestorePaths(repository string, snapshotId string) ([]byte, error) {
return []byte{}, err
}
cmd := exec.Command(resticExec, "restore", "-r", repository, snapshotId, "--target", "/")
return cmd.CombinedOutput()
output, err := cmd.CombinedOutput()
log.V(1).Info("restic restore output", "output", string(output))
return output, err
}
func DeleteSnapshot(snapshot string) error {