fine tuning and logging

This commit is contained in:
jandre 2021-02-16 20:01:52 +01:00
parent 8e138819a6
commit bc36f5a2b7

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 {