internal/archiver: fix dropped error
This commit is contained in:
parent
3ed54e762e
commit
72734d59b5
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
sn, err := restic.NewSnapshot(targets, opts.Tags, opts.Hostname, opts.Time)
|
||||||
|
if err != nil {
|
||||||
|
return nil, restic.ID{}, err
|
||||||
|
}
|
||||||
|
|
||||||
sn.Excludes = opts.Excludes
|
sn.Excludes = opts.Excludes
|
||||||
if !opts.ParentSnapshot.IsNull() {
|
if !opts.ParentSnapshot.IsNull() {
|
||||||
id := opts.ParentSnapshot
|
id := opts.ParentSnapshot
|
||||||
|
|
Loading…
Reference in a new issue