7Zip 来备份重要文件(夹)
- 把7za.exe 复制到 C:\Windows\System32下面
-
按时间命名备份
-
备份前 请退出WIZ
C:\Users\Administrator\Desktop\7za.exe
a C:\Users\Administrator\Desktop\abc.7z
C:\Users\Administrator\Desktop\test
set
mydate=%date:/=-%
7za.exe a C:\archive_%mydate% D:\Filename
7za.exe a C:\archive_%mydate% D:\Filename
7-Zip
(A) 4.57 Copyright (c) 1999-2007 Igor Pavlov 2007-12-06
Usage: 7za <command> [<switches>...]
<archive_name>
[<file_names>...]
[<@listfiles...>]
<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
-v{Size}[b|k|m|g]: Create
volumes
-u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update
options
-w[{path}]: assign Work directory. Empty path means a
temporary directory
-x[r[-|0]]]{@listfile|!wildcard}: eXclude
filenames
-y: assume Yes on all queries