internal/archiver: fix dropped error

This commit is contained in:
Lars Lehtonen 2020-02-12 13:37:37 -08:00
parent 3ed54e762e
commit 72734d59b5
No known key found for this signature in database
GPG Key ID: 8137D474EBCB04F2
1 changed files with 4 additions and 0 deletions

View File

@ -822,6 +822,10 @@ func (arch *Archiver) Snapshot(ctx context.Context, targets []string, opts Snaps
}
sn, err := restic.NewSnapshot(targets, opts.Tags, opts.Hostname, opts.Time)
if err != nil {
return nil, restic.ID{}, err
}
sn.Excludes = opts.Excludes
if !opts.ParentSnapshot.IsNull() {
id := opts.ParentSnapshot