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:
parent
3ed54e762e
commit
72734d59b5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user