23070205 发表于 2011-9-28 14:05:31

Drive SnapShot用snapshot -show 产出的硬盘列表怎么用正则表达式啊

本帖最后由 23070205 于 2011-9-28 20:20 编辑

Drive SnapShot 是一款磁盘映像软件,用户可以方便安全的备份、恢复和察看硬盘数据。使用了WindowsNT驱动器技术,支持Windows NT/2000/XP/2003/PE平台,SnapShot为带来了两项新的磁盘映像功能:
1.Snapshot Backup ——在windows运行时建立磁盘镜像;
2.Snapshot View——以友好的方式浏览保存的磁盘镜像。


同样支持命令行操作见下面无忧启动论坛的相关参数翻译


[备份卷]
Snapshot C: X:\C-DRIVE.sna
         -A    - save ALL sectors, ignore free cluster info (maintenance)
         -A    - 保存所有扇区,忽略剩余簇信息(维护)
         -L650 - Limit resulting imagesize to 650MB (CDROM size)
         -L650 - 限制映像大小为650MB (CDROM 大小)
         -T    - Test generated image file (verify correct checksums)
         -T    - 测试生成的映像文件(验证正确的校验)
         -W    - suppress <Hit any key> if started from scheduler
         -W    - 按下 <按任意键> 如果以计划任务启动
         -R    - Empty Recycle Bin for this drive before Backup
         -R    - 备份前清空驱动器的回收站
         -G    - Graphical status display for command line mode
         -G    - 命令行模式下图形显示
         -PW=MyPassword    (also used for restore and viewing)
         -PW=密码    (也用于恢复和查看)
         -C="My comment" add a comment to the image
         -C="注释" 添加注释到映像
         -ogenerate hash file with name "path\filename"
         -o产生名称为 "path\filename" 的哈希文件
         -o    - don't generate hash file
         -o    - 不产生哈希文件
         -h<HashFile> make a differential image
         -h<HashFile> 创建差分映像

[备份多卷和无盘符驱动器]
Snapshot C:+D:+HD1:3 X:\$disk-DRIVE.sna
          HD1:3 is the third partition on the first disk
          HD1:3 是第一磁盘第三分区
          HD1:* can be used to backup all partitions on the first disk
          HD1:* 可用于备份第一磁盘全部分区
Options for command line substitutions
命令行下可替换选项
Possible values for substitution are:
替换的可用值:
         $diskis substituted with the drive letter
         $disk用驱动器盘符替换
         $dateresults in 050131 which represents January 31 2005
         $date用 050131 替换 January 31 2005
         $computernameis substituted with the computername
         $computername用电脑名称替换
         $typeresults in "dif" or "ful" for differential or full image
         $type差分或完整映像分别为 "dif" 或 "ful"
         $weekdayis substituted with the first two characters of the Weekday
         $weekday用星期的前两个英文字符替换
         $yearis substituted with the year (4 digits)
         $year用年份替换 (4 位)
         $monthis substituted with the month (2 digits)
         $month用月份替换 (2 位)
         $dayis substituted with the day of the month (2 digits)
         $day用月份的日期替换 (2 位)
         $houris substituted with the hour
         $hour用小时替换
         $minuteis substituted with the minute
         $minute用分钟替换
         $secondis substituted with the second
         $second用秒钟替换

[恢复卷]
Snapshot X:\C-DRIVE.sna C:

[查看保存的文件]
Snapshot X:\C.sna Z: -V
       explores X:\C.sna as virtual drive Z: (-VM for mount only)
       例如 X:\C.sna 作为虚拟驱动器 Z: (-VM 只用于挂载)
       (-VQ for mount only and wait for event. Use --unmount to terminate)
       (-VQ 只用于挂载并等待结果。 结束使用 --unmount)

[从完整映像产生一个哈希文件]
Snapshot X:\C.sna -h<HashFileName>
Snapshot X:\C-DRIVE.sna    -I
[文件信息]Snapshot X:\C-DRIVE.sna    -I
Snapshot X:\C-DRIVE.sna    -P
[分区信息   ]Snapshot X:\C-DRIVE.sna    -P
Snapshot X:\C-DRIVE.sna    -T
[文件产生日期   ]Snapshot X:\C-DRIVE.sna    -T

special operations :
特殊操作 :
--unmount - unmount all virtual disks and terminate Snapshot started with -VQ
--unmount - 卸载全部虚拟磁盘并结束 Snapshot 进度以 -VQ
--unmount:Z - unmount virtual disk Z
--unmount:Z - 卸载虚拟磁盘 Z
--resize X:- show possible resize range for drive X:
--resize X:- 显示驱动器 X: 可调整大小范围
--resize X: 1000 - (try to) resize drive X: to 1000 MB
--resize X: 1000 - (尝试) 调整驱动器 X: 大小到 1000 MB
--resizepart X: 1000 - (try to) grow partition and filesystem to 1000 MB
            resizepart is unable to shrink partitions or filesystems!
--resizepart X: 1000 - (尝试) 尝试扩大分区和文件系统到 1000 MB
            调整大小不能缩小分区或文件系统!
--SetPartitionSize HD1 1 130000000(use with care !!)
--SetPartitionSize HD1 1 130000000(设置分区大小,谨慎使用 !!)
--exec:"NET START ORACLE"- execute commands as soon asbackup really started
                               MUST be the last option on the command line!
--exec:"NET START ORACLE"- 执行命令(网络启动)当备份真正开始时
                               必须放在命令行的最后!
--ClearSignature HD1 清除硬盘签名
--SetSignature HD1 01234567 设置硬盘签名
--Checkboot HD1 - test if HD1 seems to be bootable
--Checkboot HD1 - 测试硬盘 HD1 是否可引导
--Activate X: set active flag for drive X:
--Activate X: 设置驱动器 X: 的激活标志
--Deactivate X: clear active flag for drive X:
--Deactivate X: 清除驱动器 X: 的激活标志
--RestoreMBR HD1 filename - writes the MBR from filename to HD1
--RestoreMBR HD1 filename - 从文件写入 MBR 到 HD1
--RestorePartitionStructure HD1 filename -writes the partition information from filename to HD1
--RestorePartitionStructure HD1 filename -从文件写入分区结构信息到 HD1
--exclude:path excludes the path and all subdirectories from backup
--exclude:path 备份时排除此路径和全部子目录
--exclude:filename1,filename2,...excludes all given filenames from backup
--exclude:filename1,filename2,...备份时 backup 排除全部列出的文件
--exclude:@filename.txt exclude from file filename.txt
--exclude:@filename.txt 从文件 filename.txt 排除
--LogFile:filename.log - append log output to file filename.log
--LogFile:filename.log - 日志文件添加输出到 filename.log
--DontLogStdout   - don't write VSS log output to standard output
--DontLogStdout   - 不将 VSS 日志输出写入到标准输出
--DontLogProgress - don't write the progress report lines to stderr
--DontLogProgress - 不写入进度报告行到 stderr
--novss- don't use the volume shadow service
--novss- 不使用卷影服务
--usevss- use the volume shadow service if available
--usevss- 如果可能使用卷影服务
--forcevss- use the volume shadow service. If not available exit with error.
--forcevss- 使用卷影服务。如果不可用出错退出。
--register:License.lic - register Snapshot
--register:License.lic - 注册 Snapshot
--setdefaultpwd=MyPassword - sets the default password to MyPassword and exits
--setdefaultpwd=MyPassword - 设置默认密码为我的密码并退出
--SearchFull:path1,path2,path3 while working with differential images
            search the full image in the given pathes.
--SearchFull:path1,path2,path3 当使用差分映像时在
            给出的路径搜索完整映像。
--LimitIORate:10- limits the IO rate to 10MB/s (accepted range 1-100)
--LimitIORate:10- 限制 IO 速度为 10MB/s (一般可用范围 1-100)
--show HD1   - show size and partitions on HD1
--show HD1   - 显示 HD1 大小和分区
--show       - show size and partitions of all connected hard disks
--show       - 显示所有连接的硬盘的大小和分区
--addDriver- adds a new Hard Disk Diver to a restored Windows system drive.
                You need the driver.sys and the driver.inf file.
--addDriver- 添加新硬盘驱动到恢复的 Windows 系统驱动器。
                你需要 driver.sys 和 driver.inf 文件。
--mergeide   - corrects IDE driver setup for a restored system disk.
                Use this option if you have IDE disks and your system doesn't
                boot after a restore to different hardware.
--mergeide   -对恢复的系统盘修正 IDE 驱动器驱动。
                如果你是 IDE 磁盘并且从不同的硬件恢复后
                你的系统无法引导时使用此选项。
--QuickCheck:test.sna - performs a quick check of the image with the name
                         test.sna.
--QuickCheck:test.sna - 对文件名为 test.sna 的映像执行快速检查。
BrokenImage.sna --repair:NewImage.sna- this command can be used to repair
                a broken image
BrokenImage.sna --repair:NewImage.sna- 此命令可用于修复损坏的映像
-----------------------------------------------------------------------------
scheduling the restore of x:\image-C.sna to C: during the next reboot:
计划任务下次启动是恢复 x:\image-C.sna 到 C: 盘:
snapshot --schedule C: x:\image-C.sna
--autoreboot:off       don't boot after the restore has finished
--autoreboot:off       恢复完成后不重启
--autoreboot:success   reboot after the image was successfully restored
--autoreboot:success   映像恢复成功后重启
--autoreboot:any       reboot after the image was restored
--autoreboot:any       映像恢复后重启
--listschedule         list the scheduled restore
--listschedule         恢复计划任务表
--removeschedule       removes the scheduled restore
--removeschedule       移除恢复计划任务



我的问题,就是 snapshot -show 产出全部硬盘的全部信息后,如何正则表达式。
比如下面这个


HD1 (FIXED) 容量152.627MB厂商 WDC WD16 00AAJS-22PSA
   C: primary1 FAT32(S=14.293MB O=            32.256)
   E: logical1 NTFS(S=42.923MB O=    15.002.942.976) DISK16_VOL2
   F: logical2 NTFS(S=33.385MB O=    60.011.675.136) DISK16_VOL3
   G: logical3 NTFS(S=33.385MB O=    95.018.466.816) DISK16_VOL4
   H: logical4 NTFS(S=28.623MB O=   130.025.258.496) IBM_SERVICE
HD2 (FIXED) 容量305.245MB厂商 ST332061 3AS
   D: primary1 FAT32(S=10.704MB O=            32.256)
   I: logical1 NTFS(S= 100.390MB O=    33.699.004.416)
   J: logical2 NTFS(S= 100.390MB O=   138.966.137.856)
   K: logical3 NTFS(S=70.221MB O=   244.233.271.296)
   L: primary2 NTFS(S=21.422MB O=    11.235.732.480)
   M: primary4 NTFS(S=   2.103MB O=   317.865.946.112)
HD3 (REMOVABLE) 容量    7.629MB厂商 USB FLASH DRIVE
   O: primary1 FAT32(S=   7.464MB O=       158.203.904)


期待大家的帮助!

23070205 发表于 2011-9-28 14:06:13

http://www.verycd.com/topics/2893181/
此为下载drive snapshot的链接
页: [1]
查看完整版本: Drive SnapShot用snapshot -show 产出的硬盘列表怎么用正则表达式啊