Menu

#2365 When adding certain folders to 7z it scans extra directories

None
open-rejected
nobody
None
5
2022-10-10
2022-10-10
No

Just trying to make a backup of a website folder
However, I noticed 7z complains it has no access to some other folders which are not in the path of the files to archive
fe with
C:\Tools\7-Zip\7z.exe a -r "D:\WebAppsBackup\test.7z" "C:\Windows\system32\CertSrv"

it complains about the following folders
*Scanning the drive:

WARNING: Access is denied.
C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\Windows\INetCache\Content.IE5\

WARNING: Access is denied.
C:\Windows\system32\LogFiles\WMI\RtBackup\
*
This happened with 7z.exe and also with 7zg.exe with both cmd.exe and powershell.exe (running as admin), running from a different folder made no difference.
This test was with 7z 2201, tested same with 7z 2200.
Tried with -snl -snh (even though it looks like there's no links in the folder, that reduces the errors to only
C:\Windows\system32\LogFiles\WMI\RtBackup\ : Access is denied.

Also tried C:\CertData, and in that case it seemed to do the whole C:\ and I got a load of warnings

1 Attachments

Discussion

  • Igor Pavlov

    Igor Pavlov - 2022-10-10

    remove -r switch.

     
  • Igor Pavlov

    Igor Pavlov - 2022-10-10
    • status: open --> open-rejected
    • Group: -->
     

Log in to post a comment.

MongoDB Logo MongoDB