Note that there are some explanatory texts on larger screens.

plurals
  1. PO7zip command line backup script acting weird
    primarykey
    data
    text
    <p>I am creating a small backup script for my personal use, and it works at 99% on the latest version of 7zip, Win7x64 :</p> <blockquote> <p>:: u : Update archive</p> <p>:: -t7z : Use 7z file type (less compatible and smaller results)</p> <p>:: -mx=9 : "Ultra" compression</p> <p>:: -ms=off : Do not create solid archive (they are incompatible with update archive mode)</p> <p>:: -mmt=off : Enable multithreading</p> <p>:: -r : Recursive (traverse all subdirectories)</p> <p>:: -ssw : Compress locked files</p> <p>:: -w : Working dir to G: drive (no temp file copy from disk to disk)</p> <p>@echo "%userprofile%\Desktop" >> list.txt</p> <p>@echo "%userprofile%\Documents" >> list.txt</p> <p>@echo "%userprofile%\Downloads" >> list.txt</p> <p>@echo "%userprofile%\Saved Games" >> list.txt</p> <p>@echo "%userprofile%\Pictures" >> list.txt</p> <p>"C:\Program Files (x86)\7-Zip\7z.exe" u -t7z -mx=9 -ms=off -mmt=on -r -ssw -wg: "G:\AutoSaveC\SaveC.7z" @list.txt</p> <p>del list.txt</p> <p>shutdown -s -t 180</p> </blockquote> <p>There are two problems tho :</p> <p>1- Even though the archive contains all expected folders and files, it also contains stuff never intended to be there (only part of the files from the original folders) :</p> <blockquote> <p>%userprofile%\AppData</p> <p>%userprofile%\Music</p> </blockquote> <p>2- It also gives me warnings about denied access to folders I NEVER told it to look at :</p> <blockquote> <p>C:\Users\LocalAdmin\AppData\Local\Application Data\: WARNING: Access denied. C:\Users\LocalAdmin\AppData\Local\ElevatedDiagnostics\: WARNING: Access denied. C:\Users\LocalAdmin\AppData\Local\History\: WARNING: Access denied. C:\Users\LocalAdmin\AppData\Local\Temp\msdtadmin\: WARNING: Access denied. C:\Users\LocalAdmin\AppData\Local\Temporary Internet Files\: WARNING: Access denied. C:\Users\LocalAdmin\Application Data\: WARNING: Access denied. C:\Users\LocalAdmin\Cookies\: WARNING: Access denied. C:\Users\LocalAdmin\Local Settings\: WARNING: Access denied. C:\Users\LocalAdmin\Recent\: WARNING: Access denied. C:\Users\LocalAdmin\SendTo\: WARNING: Access denied.</p> </blockquote> <p>Do you know what I'm doing wrong ? Or is it a bug from 7zip ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload