PARTCLONE.NTFS的用法
(1)備份分割區–不採用壓縮 (完整備份使用空間, DATA20 GB, IMAGE就是20GB)
PARTCLONE.NTFS –c –s /dev/sda3 –o /home/partimag/imagefile.img
(2)還原分割區–不採用壓縮
PARTCLONE.NTFS –r –s /home/partimag/imagefile.img –o /dev/sda3
(3)備份分割區–使用gzip壓縮(完整備份使用空間有壓縮, DATA20 GB, IMAGE約12GB)
PARTCLONE.NTFS –c –s /dev/sda3 | gzip –1 –c > /home/partimag/imagefile.img.gz
(-1~-9代表壓縮率, -1最少壓縮,-9最大壓縮)
(4)還原分割區–使用gzip壓縮
gzip –d -c /home/partimag/imagefile.img.gz | PARTCLONE.NTFS –r –o /dev/sda3
NAME
partclone.ntfs – The utility for clone and restore an ntfs partition.SYNOPSIS
partclone.ntfs [options]… [MODE] [SOURCE FILE] [OUTPUT FILE]
OPTIONS
-V, –version
prints program version.
-c, –clone
Back used block to the special image format.
-r, –restore
Restore from the special image format.
-b, –dev-to-dev
Local device to device copy mode
-d, –debug
Show debug information.
-h, –help
Display help information.
-s, –source
Source FILE can be a partition or image file.
-o, –output
Output FILE can be a partition
-O, –overwrite
Output FILE, overwriting if exists
-C, –no_check
Don’t check device size and free space
-N, –ncurses
Using Ncurses User Interface
-X, –dialog
output message as Dialog Format
-F, –force
force progress
http://s10.histats.com/476.swf