Ignore permission errors for backup

This commit is contained in:
Alexander Neumann committed 2014-11-23 12:15:19 +01:00
1 parent d6a202a853
commit 7d1ba8ab65
2 files changed
+9 -7

No files matched your search

+3 -2
View File
@@ -52,8 +52,9 @@ func commandBackup(be backend.Server, key *khepri.Key, args []string) error {
fmt.Fprintf(os.Stderr, "err: %v\n", err)
}
arch.Error = func(dir string, fi os.FileInfo, err error) error {
fmt.Fprintf(os.Stderr, "error for %s: %v\n%v\n", dir, err, fi)
return err
// TODO: make ignoring errors configurable
fmt.Fprintf(os.Stderr, "\nerror for %s: %v\n%v\n", dir, err, fi)
return nil
}
fmt.Printf("scanning %s\n", target)