@@ -30,15 +30,16 @@ type CommandStatus struct {
3030// BackupStatus contains the last backup status
3131type BackupStatus struct {
3232 CommandStatus
33- FilesNew int `json:"files_new"`
34- FilesChanged int `json:"files_changed"`
35- FilesUnmodified int `json:"files_unmodified"`
36- DirsNew int `json:"dirs_new"`
37- DirsChanged int `json:"dirs_changed"`
38- DirsUnmodified int `json:"dirs_unmodified"`
39- FilesTotal int `json:"files_total"`
40- BytesAdded uint64 `json:"bytes_added"`
41- BytesTotal uint64 `json:"bytes_total"`
33+ FilesNew int `json:"files_new"`
34+ FilesChanged int `json:"files_changed"`
35+ FilesUnmodified int `json:"files_unmodified"`
36+ DirsNew int `json:"dirs_new"`
37+ DirsChanged int `json:"dirs_changed"`
38+ DirsUnmodified int `json:"dirs_unmodified"`
39+ FilesTotal int `json:"files_total"`
40+ BytesAdded uint64 `json:"bytes_added"`
41+ BytesAddedPacked uint64 `json:"bytes_added_packed"`
42+ BytesTotal uint64 `json:"bytes_total"`
4243}
4344
4445// BackupSuccess indicates the last backup was successful
@@ -50,15 +51,16 @@ func (p *Profile) BackupSuccess(summary monitor.Summary, stderr string) *Profile
5051 Duration : int64 (math .Ceil (summary .Duration .Seconds ())),
5152 Stderr : stderr ,
5253 },
53- FilesNew : summary .FilesNew ,
54- FilesChanged : summary .FilesChanged ,
55- FilesUnmodified : summary .FilesUnmodified ,
56- DirsNew : summary .DirsNew ,
57- DirsChanged : summary .DirsChanged ,
58- DirsUnmodified : summary .DirsUnmodified ,
59- FilesTotal : summary .FilesTotal ,
60- BytesAdded : summary .BytesAdded ,
61- BytesTotal : summary .BytesTotal ,
54+ FilesNew : summary .FilesNew ,
55+ FilesChanged : summary .FilesChanged ,
56+ FilesUnmodified : summary .FilesUnmodified ,
57+ DirsNew : summary .DirsNew ,
58+ DirsChanged : summary .DirsChanged ,
59+ DirsUnmodified : summary .DirsUnmodified ,
60+ FilesTotal : summary .FilesTotal ,
61+ BytesAdded : summary .BytesAdded ,
62+ BytesAddedPacked : summary .BytesAddedPacked ,
63+ BytesTotal : summary .BytesTotal ,
6264 }
6365 return p
6466}
@@ -73,15 +75,16 @@ func (p *Profile) BackupError(err error, summary monitor.Summary, stderr string)
7375 Duration : int64 (math .Ceil (summary .Duration .Seconds ())),
7476 Stderr : stderr ,
7577 },
76- FilesNew : 0 ,
77- FilesChanged : 0 ,
78- FilesUnmodified : 0 ,
79- DirsNew : 0 ,
80- DirsChanged : 0 ,
81- DirsUnmodified : 0 ,
82- FilesTotal : 0 ,
83- BytesAdded : 0 ,
84- BytesTotal : 0 ,
78+ FilesNew : 0 ,
79+ FilesChanged : 0 ,
80+ FilesUnmodified : 0 ,
81+ DirsNew : 0 ,
82+ DirsChanged : 0 ,
83+ DirsUnmodified : 0 ,
84+ FilesTotal : 0 ,
85+ BytesAdded : 0 ,
86+ BytesAddedPacked : 0 ,
87+ BytesTotal : 0 ,
8588 }
8689 return p
8790}
0 commit comments