cmd: Preserve LastModified date when exporting storage (#5968)

This commit is contained in:
Jens-Uwe Mager 2023-12-13 11:06:06 -05:00 committed by GitHub
parent cbbd1df904
commit 56c6b3f673
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -200,9 +200,10 @@ func cmdExportStorage(fl Flags) (int, error) {
}
hdr := &tar.Header{
Name: k,
Mode: 0o600,
Size: int64(len(v)),
Name: k,
Mode: 0o600,
Size: int64(len(v)),
ModTime: info.Modified,
}
if err = tw.WriteHeader(hdr); err != nil {