mirror of
https://github.com/restic/restic.git
synced 2026-10-08 03:17:12 +00:00
Ignore permission errors for backup
This commit is contained in:
1 parent
d6a202a853
commit
7d1ba8ab65
2 files changed
+9
-7
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user