Freeze.7z (Real »)
Optionally sets the file attribute to read-only after creation to prevent accidental deletion or modification.
To add, update, or replace files within an existing 7z archive, effectively "freezing" their current state, with optional encryption and data compression. freeze.7z
7z a -t7z -pMyPassword -mhe=on freeze.7z /path/to/files/ attrib +r freeze.7z # Windows: Make file read-only chmod 444 freeze.7z # Linux: Make file read-only Use code with caution. Copied to clipboard -p : Sets password. -mhe=on : Encrypts file headers (filenames). Optionally sets the file attribute to read-only after
Adds a password to the archive to secure its contents. Command-Line Examples (Using 7-Zip/p7zip) To create or update the freeze.7z archive: 1. Create a New Freeze Archive 7z a -t7z freeze.7z /path/to/files/ Use code with caution. Copied to clipboard a : Add files to archive. -t7z : Specify 7z format. 2. Update Existing Freeze Archive (Add/Replace Files) 7z u freeze.7z /path/to/new_files/ Use code with caution. Copied to clipboard u : Update files in archive. 3. Create Encrypted & Protected Archive Copied to clipboard -p : Sets password