forked from TrueCloudLab/restic
Fix timestamps
This commit is contained in:
parent
7e28bf7e97
commit
8c91c51d1b
1 changed files with 7 additions and 4 deletions
|
@ -104,10 +104,13 @@ func runRecover(gopts GlobalOptions) error {
|
|||
for id := range roots {
|
||||
var subtreeID = id
|
||||
node := restic.Node{
|
||||
Type: "dir",
|
||||
Name: id.Str(),
|
||||
Mode: 0755,
|
||||
Subtree: &subtreeID,
|
||||
Type: "dir",
|
||||
Name: id.Str(),
|
||||
Mode: 0755,
|
||||
Subtree: &subtreeID,
|
||||
AccessTime: time.Now(),
|
||||
ModTime: time.Now(),
|
||||
ChangeTime: time.Now(),
|
||||
}
|
||||
tree.Insert(&node)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue