mirror of
https://github.com/restic/restic.git
synced 2026-11-28 15:26:48 +00:00
Record exclude patterns in snapshot
This adds the exclude patterns used to create a backup in the snapshot, so we can later compute statistics (like git does) on the data structure, e.g. added/removed files etc. For that, we need the exclude pattern.
This commit is contained in:
1 parent
ec3893e655
commit
cc34401152
4 files changed
+9
-5
No files matched your search
@@ -21,6 +21,7 @@ type Snapshot struct {
|
||||
Username string `json:"username,omitempty"`
|
||||
UID uint32 `json:"uid,omitempty"`
|
||||
GID uint32 `json:"gid,omitempty"`
|
||||
Excludes []string `json:"excludes,omitempty"`
|
||||
|
||||
id backend.ID // plaintext ID, used during restore
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user