2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 02:48:55 +00:00

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

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