Menu

Directory timestamps not always stored

Help
Opty
2022-02-17
2022-04-11
  • Opty

    Opty - 2022-02-17

    Hello,

    on Windows XP SP3 using 7-Zip 21.07 like

    7z a -mx=9 -spf2 -r archive.zip C:\...\directory1\*.txt C:\...\directory2\*.reg

    doesn't store timestamps of any directories involved.

    If i use e.g.

    7z a -mx=9 -spf2 -r archive.zip C:\...\directory1

    7-Zip stores only directory1's timestamps.

    Bug or feature?

    (Edit: Typo.)

     

    Last edit: Opty 2022-02-17
  • Igor Pavlov

    Igor Pavlov - 2022-02-17

    C:\...\directory1\*.txt is not directory.
    It's txt file.
    so 7-zip stores file data and file metadata: path to that txt file and timestamp of that txt file:

     
  • Opty

    Opty - 2022-02-18

    Any better way to store leading directories' metadata than using C:\top_level_directory and excluding everything except wanted?

     
  • Igor Pavlov

    Igor Pavlov - 2022-02-18

    no way now.

     
  • Opty

    Opty - 2022-02-18

    Do you plan to add such feature?

     
  • Igor Pavlov

    Igor Pavlov - 2022-02-18

    not now.
    maybe later.
    why do you need that timestamp?

     

    Last edit: Igor Pavlov 2022-02-18
  • Opty

    Opty - 2022-02-24

    Oops, I forgot a bit to reply, sorry.

    When backing up, I like to store every metadata I reasonably can, just in case.

     
  • Opty

    Opty - 2022-03-18

    No more replies so I guess I can mark this as solved.

    (Edit: I can't change the subject, oh well...)

     

    Last edit: Opty 2022-03-18
  • Casteele M.

    Casteele M. - 2022-04-11

    As a work-around, you can create a file with the desired meta-data and add it to the archive. You can hen extract the file of meta-data and process it to adjust the other extracted files. (Keeping mind that the underlying file system may also update some of it, such as last access times...) Of course, this also means you will need to create programs to handle this (Python3 comes to mind, which is relatively easy to install on Windows, and almost always part of the base install of Un*x and Mac OS/X).

     

Log in to post a comment.

MongoDB Logo MongoDB