mirror of
https://github.com/octoleo/restic.git
synced 2025-02-14 01:30:22 +00:00
Fix timestamps
This commit is contained in:
parent
7e28bf7e97
commit
8c91c51d1b
@ -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…
x
Reference in New Issue
Block a user