2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-23 11:28:54 +00:00

Ignore ExcludeOtherFs if Stdin is true

Closes: #1807
This commit is contained in:
David Roman 2018-06-21 23:12:38 +02:00
parent bb2ad76833
commit 2384c1cee7
No known key found for this signature in database
GPG Key ID: 2D266C8464BEA570

View File

@ -190,7 +190,7 @@ func (opts BackupOptions) Check(gopts GlobalOptions, args []string) error {
// from being saved in a snapshot
func collectRejectFuncs(opts BackupOptions, repo *repository.Repository, targets []string) (fs []RejectFunc, err error) {
// allowed devices
if opts.ExcludeOtherFS {
if opts.ExcludeOtherFS && !opts.Stdin {
f, err := rejectByDevice(targets)
if err != nil {
return nil, err