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:
Alexander Neumann committed 2015-07-22 22:43:32 +02:00
1 parent ec3893e655
commit cc34401152
4 files changed
+9 -5

No files matched your search

+1
View File
@@ -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
}