2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-03 17:40:53 +00:00

Fix timestamps

This commit is contained in:
Alexander Neumann 2018-08-23 22:22:34 +02:00
parent 7e28bf7e97
commit 8c91c51d1b

View File

@ -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)
} }