mirror of
https://github.com/restic/restic.git
synced 2025-11-03 18:14:13 +00:00
@@ -190,7 +190,7 @@ func (opts BackupOptions) Check(gopts GlobalOptions, args []string) error {
|
|||||||
// from being saved in a snapshot
|
// from being saved in a snapshot
|
||||||
func collectRejectFuncs(opts BackupOptions, repo *repository.Repository, targets []string) (fs []RejectFunc, err error) {
|
func collectRejectFuncs(opts BackupOptions, repo *repository.Repository, targets []string) (fs []RejectFunc, err error) {
|
||||||
// allowed devices
|
// allowed devices
|
||||||
if opts.ExcludeOtherFS {
|
if opts.ExcludeOtherFS && !opts.Stdin {
|
||||||
f, err := rejectByDevice(targets)
|
f, err := rejectByDevice(targets)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Reference in New Issue
Block a user