备份专家 Backup Master v0.2 命令行使用方法参考
命令行使用方法参考:
主程序名为bm.exe,所有备份信息都保存在主程序所在目录下的Profiles.xml文件中。
1. 帮助:
bm -?
2. 备份组(Profile):
a) 创建并添加新的备份组profile,<destination path>可以是相对路径,如”.\backup”, “\backup”, “/backup”均表示主程序根目录下的backup文件夹;也可以是网络共享路径,如”\\backup_server\backup”:
bm -newprofile <name> [<destination path>]
b) 更新profile:
bm –updateprofile <name> <new destination path>
c) 删除profile:
bm –rmprofile <name>
3. 备份项:
a) 添加新的备份项到profile,若没有指定profile则添加到默认的profile中,<path>是绝对路径或者网络共享路径:
bm –newitem <path> [-t over|incre|dup] [-n original|new|date] [-m <new name>] [<profile name>]
b) 更新备份项设置:
bm –updateitem <path> [-t over|incre|dup] [-n original|new|date] [-m <new name>] [<profile name>]
c) 删除备份项:
bm –rmitem <path>
4. 运行备份任务:
a) 运行备份任务(指定profile):
bm –run <profile name 1> [<profile name 2>]……
b) 运行所有的备份任务(所有profile):
bm –runall
5. 查询(Querying):
a) 列出所有profile:
bm –showallprfs
b) 列出指定profile的详细备份项:
bm –showprfs <profile1 name 1> [<profile name 2>]……