mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-22 05:59:00 +08:00
cmd: Preserve LastModified date when exporting storage (#5968)
This commit is contained in:
parent
cbbd1df904
commit
56c6b3f673
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user