Create an archive from a folder.
7z a archive.7z .\folder\Create an archive from a folder.
7z a archive.7z .\folder\Create an archive from a folder.
7z a archive.7z .\folder\| Option / clause | Description |
|---|---|
a <archive> <files> | Add files to an archive. |
-t<type> | Choose the archive type, such as 7z or zip. |
-mx=<0-9> | Choose the compression level. |
-p[password] | Set an archive password; avoid putting secrets in command history. |
-r | Include files from subdirectories. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.