Menu

#2616 7z.exe: catastrophic archiving entire drive or missing name of source directory inside archive file

open
nobody
None
5
2026-01-01
2026-01-01
H. Iat
No

Attached you will find a test script with three examples for archiving a subfolder in batch mode with 7z.exe.
The details are explained in the comments in the script.
It works fine for sub-subdirectories. However, if the directory is located directly in the root directory of a drive, the name of the source directory is missing from the archive, or 7z.exe attempts to back up the entire drive. That would be a disaster. I am sure this is a bug.
Thank you very much for your efforts.

1 Attachments

Discussion

  • Igor Pavlov

    Igor Pavlov - 2026-01-01

    read -r switch description in help file and look all command examples from that help page.

     

    Last edit: Igor Pavlov 2026-01-01
  • H. Iat

    H. Iat - 2026-01-01

    Okay, without the "-r" option, example 3 now works as desired. The name of the source directory from the top level is inside the archive.
    However, I cannot explain why in example 3 (with "-r") the entire drive was searched, but in example 1 (also with "-r") it wasn't. But never mind.
    Thank you for your prompt reply.

     

Log in to post a comment.

MongoDB Logo MongoDB