7-Zip 9.20 RM2: 7-zip mit ‚move‘-Option
Vor Haus aus kann 7-zip momentan keine Option anbieten, die die originalen Dateien beim Packen verschiebt, sodass die Ursprungsdateien anschließend gelöscht sind.
Heute habe ich zufällig eine 7zip-Version gefunden, die genau das ermöglicht:
Quelle:
http://sourceforge.net/p/sevenzip/discussion/45797/thread/bcb5a596
Und hier der Link zur geänderten 7zip Version:
http://pamho.com/7z/7z920rm2bin.7zund die Quellen:
http://pamho.com/7z/7z920rm2src.7z
Wichtig ist, dass man auf der Kommandozeile statt der Option ‚a‘ ein ‚m‘ verwendet.
Und hier ein Anwendungsfall:
C:\Program Files\7-zip-extend\7z.exe m -tzip D:\work\zip\MSSQL-Express-Backup.zip D:\Backup\MSSQL-Express\*.bak
Dieses Beispiel packt alle SQL-Backups aus dem Verzeichnis in die MSSQL-Express-Backup.zip und löscht dabei die vorhandene original .bak Datei.
Hier nochmal die Unterschiede für die 7z.exe:
Original 7-Zip [64] 9.20:
<Commands>
a: Add files to archive
b: Benchmark
d: Delete files from archive
e: Extract files from archive (without using directory names)
l: List contents of archive
t: Test integrity of archive
u: Update files to archive
x: eXtract files with full paths
<Switches>
-ai[r[-|0]]{@listfile|!wildcard}: Include archives
-ax[r[-|0]]{@listfile|!wildcard}: eXclude archives
-bd: Disable percentage indicator
-i[r[-|0]]{@listfile|!wildcard}: Include filenames
-m{Parameters}: set compression Method
-o{Directory}: set Output directory
-p{Password}: set Password
-r[-|0]: Recurse subdirectories
-scs{UTF-8 | WIN | DOS}: set charset for list files
-sfx[{name}]: Create SFX archive
-si[{name}]: read data from stdin
-slt: show technical information for l (List) command
-so: write data to stdout
-ssc[-]: set sensitive case mode
-ssw: compress shared files
-t{Type}: Set type of archive
-u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update options
-v{Size}[b|k|m|g]: Create volumes
-w[{path}]: assign Work directory. Empty path means a temporary directory
-x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames
-y: assume Yes on all queries
—————————————————-
Erweitert 7-Zip 9.20 RM2:
<Commands>
a: Add files to archive
b: Benchmark
d: Delete files from archive
e: Extract files from archive (without using directory names)
f: Freshen existing files in archive
l: List contents of archive
m: Move files to archive
t: Test integrity of archive
u: Update files to archive
x: eXtract files with full paths
<Switches>
-ai[r[-|0]]{@listfile|!wildcard}: Include archives
-ax[r[-|0]]{@listfile|!wildcard}: eXclude archives
-bd: Disable percentage indicator
-i[r[-|0]]{@listfile|!wildcard}: Include filenames
-m{Parameters}: set compression Method
-mts=off: Don’t set time of archive to time of newest file
-o{Directory}: set Output directory
-p{Password}: set Password
-r[-|0]: Recurse subdirectories
-scs{UTF-8 | WIN | DOS}: set charset for list files
-sfx[{name}]: Create SFX archive
-si[{name}]: read data from stdin
-slt: show technical information for l (List) command
-so: write data to stdout
-ssc[-]: set sensitive case mode
-ssw: compress shared files
-t{Type}: Set type of archive
-u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update options
-v{Size}[b|k|m|g]: Create volumes
-w[{path}]: assign Work directory. Empty path means a temporary directory
-x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames
-y: assume Yes on all queries