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 {
|
for id := range roots {
|
||||||
var subtreeID = id
|
var subtreeID = id
|
||||||
node := restic.Node{
|
node := restic.Node{
|
||||||
Type: "dir",
|
Type: "dir",
|
||||||
Name: id.Str(),
|
Name: id.Str(),
|
||||||
Mode: 0755,
|
Mode: 0755,
|
||||||
Subtree: &subtreeID,
|
Subtree: &subtreeID,
|
||||||
|
AccessTime: time.Now(),
|
||||||
|
ModTime: time.Now(),
|
||||||
|
ChangeTime: time.Now(),
|
||||||
}
|
}
|
||||||
tree.Insert(&node)
|
tree.Insert(&node)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue