mirror of
https://github.com/restic/restic.git
synced 2025-03-16 00:00:05 +01:00
Variable renamed
This commit is contained in:
parent
a5ea82e5a5
commit
f0af9e3e04
1 changed files with 10 additions and 10 deletions
|
@ -143,11 +143,11 @@ func printSnapshotsReadable(list []*restic.Snapshot) {
|
|||
|
||||
//Snapshot provides struct to store snapshots
|
||||
type Snapshot struct {
|
||||
ID string `json:"id"`
|
||||
Date string `json:"date"`
|
||||
Host string `json:"host"`
|
||||
Tags []string `json:"tags"`
|
||||
Directory []string `json:"directory"`
|
||||
ID string `json:"id"`
|
||||
Date string `json:"date"`
|
||||
Host string `json:"host"`
|
||||
Tags []string `json:"tags"`
|
||||
Directories []string `json:"directories"`
|
||||
}
|
||||
|
||||
//printSnapshotsJSON provides machine redability
|
||||
|
@ -157,11 +157,11 @@ func printSnapshotsJSON(list []*restic.Snapshot) error {
|
|||
for _, sn := range list {
|
||||
|
||||
k := Snapshot{
|
||||
ID: sn.ID().Str(),
|
||||
Date: sn.Time.Format(TimeFormat),
|
||||
Host: sn.Hostname,
|
||||
Tags: sn.Tags,
|
||||
Directory: sn.Paths}
|
||||
ID: sn.ID().Str(),
|
||||
Date: sn.Time.Format(TimeFormat),
|
||||
Host: sn.Hostname,
|
||||
Tags: sn.Tags,
|
||||
Directories: sn.Paths}
|
||||
|
||||
response = append(response, k)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue