diff --git a/src/cmds/restic/cmd_backup.go b/src/cmds/restic/cmd_backup.go index d3c4d92ff..067edf751 100644 --- a/src/cmds/restic/cmd_backup.go +++ b/src/cmds/restic/cmd_backup.go @@ -359,7 +359,7 @@ func runBackup(opts BackupOptions, gopts GlobalOptions, args []string) error { return false } - if !opts.ExcludeOtherFS { + if !opts.ExcludeOtherFS || fi == nil { return true }