7ZIP manual & documentation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
On this site: 7zC.txt 7zFormat.txt License.txt MANUAL/commands/add.htm MANUAL/commands/bench.htm MANUAL/commands/delete.htm MANUAL/commands/extract.htm MANUAL/commands/extract_full.htm MANUAL/commands/index.htm MANUAL/commands/list.htm MANUAL/commands/style.css MANUAL/commands/test.htm MANUAL/commands/update.htm MANUAL/exit_codes.htm MANUAL/index.htm MANUAL/style.css MANUAL/switches/ar_exclude.htm MANUAL/switches/ar_include.htm MANUAL/switches/ar_no.htm MANUAL/switches/charset.htm MANUAL/switches/exclude.htm MANUAL/switches/include.htm MANUAL/switches/index.htm MANUAL/switches/list_tech.htm MANUAL/switches/method.htm MANUAL/switches/output_dir.htm MANUAL/switches/overwrite.htm MANUAL/switches/password.htm MANUAL/switches/recurse.htm MANUAL/switches/sfx.htm MANUAL/switches/ssc.htm MANUAL/switches/stdin.htm MANUAL/switches/stdout.htm MANUAL/switches/stop_switch.htm MANUAL/switches/style.css MANUAL/switches/type.htm MANUAL/switches/update.htm MANUAL/switches/volume.htm MANUAL/switches/working_dir.htm MANUAL/switches/yes.htm MANUAL/syntax.htm Methods.txt copying.txt history.txt lzma.txt readme.txt unRarLicense.txt |
-u (Update options) switchSpecifies how to update files in an archive and (or) how to create new archives. Syntax-u[-]<action_set>[!{new_archive_name}] <action_set> ::= <state_action>... <state_action> ::= <state><action> <state> ::= p | q | r | x | y | z | w <action> ::= 0 | 1 | 2 | 3 Parameters
RemarksAny update command (such as a (Add), d (Delete), u (Update)) can be assigned in these terms. The following table shows action sets for update commands.
If you don't specify a !{new_archive_name} option, then all options will refer to the main archive (the archive assigned on the command line after the 7z command). If you specify !{new_archive_name} option, then 7-Zip also will create a new archive with the specified name and all options will refer to that new archive. Multiple update switches are supported. 7-Zip can create any number of new archives during one operation. By default, the action set for each new archive is assigned as the action set of the main command. There are 3 different action sets for commands: a (Add), d (Delete), u (Update). You can overload any <state_action> pair. Time zone notesIf you change time zone (when you move your computer to another time zone or if there are clock changes for daylight saving in your zone), you can have some problems with update commands that depend from file's modification time. It's strongly recommended to use only file system that uses Coordinated Universal Time (UTC) and archive format that also uses UTC. In that case you will have no problems with time zone changes. Also it's recommended to use only UTC formats in other cases, for example, if you send files to someone in another time zone. Also in some cases there are no problems, if both file system and archive format use local time, for example, FAT file system and ZIP format.
Examples7z u c:\1\exist.7z -u- -up0q3x2z0!c:\1\update.7z * creates a new archive update.7z and writes to this archive all files from current directory which differ from files in exist.7z archive. exist.7z archive will not be changed. 7z u c:\1\exist.7z -up0q3x2z0!c:\1\update.7z * -ms=off creates a new archive update.7z and writes to this archive all files from the current directory which differ from files in exist.7z archive. Note: The current version of 7-Zip cannot change an archive created with the solid option switched on. To update a .7z archive, you must create and update the archive in non-solid mode (-ms=off switch). Commands that can be used with this switch | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Hosted by bugaco.com |