diff --git a/cmd/restic/global.go b/cmd/restic/global.go index a8270e20d..f5b646dd5 100644 --- a/cmd/restic/global.go +++ b/cmd/restic/global.go @@ -73,6 +73,7 @@ type GlobalOptions struct { PackSize uint NoExtraVerify bool InsecureNoPassword bool + RepoSizeMax uint64 backend.TransportOptions limiter.Limits @@ -485,6 +486,7 @@ func OpenRepository(ctx context.Context, opts GlobalOptions) (*repository.Reposi Compression: opts.Compression, PackSize: opts.PackSize * 1024 * 1024, NoExtraVerify: opts.NoExtraVerify, + RepoSizeMax: opts.RepoSizeMax, }) if err != nil { return nil, errors.Fatal(err.Error()) diff --git a/internal/restic/snapshot.go b/internal/restic/snapshot.go index f9cdf4daf..e84f1e45c 100644 --- a/internal/restic/snapshot.go +++ b/internal/restic/snapshot.go @@ -25,8 +25,9 @@ type Snapshot struct { Tags []string `json:"tags,omitempty"` Original *ID `json:"original,omitempty"` - ProgramVersion string `json:"program_version,omitempty"` - Summary *SnapshotSummary `json:"summary,omitempty"` + ProgramVersion string `json:"program_version,omitempty"` + PartialSnapshot bool `json:"partial_snapshot,omitempty"` + Summary *SnapshotSummary `json:"summary,omitempty"` id *ID // plaintext ID, used during restore }