partimage

依赖包

Many libraries are required to compile/run Partition Image:

libz gzip compression support

bzip2

liblzo lzo compression support

libnewt GUI (Graphical User Interface)

libslang Required for newt

libssl OpenSSL: encryption of data over the network

libcrypt support for password


# rpm -qa | grep newt

libreport-newt-2.0.9-19.el6.centos.i686

newt-python-0.52.11-3.el6.i686

newt-0.52.11-3.el6.i686

newt-devel-0.52.11-3.el6.i686( 到第4个包就可以运行 )

newt-static-0.52.11-3.el6.i686

perl-Newt-1.08-26.el6.i686

安装

# ./configure && make && make install

After this, if you enabled SSL, you can install the needed certificate with

# make certificates


If the shared version of OpenSSL is installed on your computer (it must have been compiled with ./config --prefix=/usr -shared), then the SSL encryption is enabled by default.



使用

# partimage -od -f1 -z1 save /dev/hda12 /mnt/backup/hda12.partimg.gz

# partimage --help(图形界面参考这里的说明来填写)


wKioL1MgYUHTVl79AAHTbOcwOt4152.jpg


wKiom1MgYYnxJ6tSAAHwQONyeO4300.jpg

wKioL1MgYYjTplezAAEqGoad__Y994.jpg


What compression level to use ?

When you save a partition into an image file, you can choose one of four compression levels:


* none There is no compression

* gzip Image will be compressed with gzip (default)

* bzip2 Image will be compressed with bzip2

* lzo Image will be compressed with lzo


Using a network filesystem

Here is how to save the sda1 partition of the current linux computer running Partimage to a Windows server having 192.168.0.1 as IP address and sharing Temp:

mkdir /mnt/samba

mount -t smbfs //192.168.0.1/Temp /mnt/samba

partimage save /dev/sda1 /mnt/samba/backup-of-sda1.pimg.gz

If you want to use NFS (Network File System) you will have to do the same with the nfs option instead:

mkdir /mnt/nfs

mount -t nfs 192.168.0.1:/temp /mnt/nfs

partimage save /dev/sda1 /mnt/nfs/backup-of-sda1.pimg.gz

Of course, the NFS server must have its NFS service running.

本文出自 “小崔的实验笔记” 博客,谢绝转载!

你可能感兴趣的:(linux,ghost)