[NTLUG:Discuss] Copying Linux partitions
David
david at hayes-family.org
Wed Jul 23 19:30:21 CDT 2003
partimage(1) partimage(1)
NAME
partimage - backups/restores partitions
SYNOPSIS
partimage [ -bcdehimMnoSvwy ] [-z compresslevel] [-V volumesize]
[-f actionatend] [-s server] [-p port] [-a mountoptions] [-g loglevel]
[ save device image_file ]
partimage [ -bcdehimMnoSvwy ] [-z compresslevel] [-V volumesize]
[-f actionatend] [-s server] [-p port] [-a mountoptions] [-g loglevel]
[ restore device image_file ]
partimage [ restmbr image_file ]
partimage [ imginfo image_file ]
DESCRIPTION
partimage will be used to backup any partition into imagefiles.
OPTIONS
-z val --compress val
Set image file compression level. val=0: don't compress: very
fast but very big image file val=1: compress using gzip: fast
and small image file (default) val=2: compress using bzip2: very
slow and very small image file
-c --nocheck
Don't check the partition before saving.
-o --overwrite
Overwrite the existing image file without confirmation.
-d --nodesc
Don't ask any description for the image file.
-V vol --volume vol
Split image into multiple volumes files. vol will be the size in
KB of volumes
-w --waitvol
Wait for a confirmation after each volume change.
-e --erase
Erase empty blocks on restore with zero bytes.
-m --allowmnt
Don't fail if the partition is mounted. Dangerous !
-M --nombr
Don't create a backup of the MBR (Mast Boot Record) in the image
file.
-h --help
show help
-v --version
show version
-f action --finish action
Action to do if finished successfully action=0 wait: don't
make anything action=1 halt (power off) the computer
action=2 reboot (restart the computer): action=3 quit
-b --batch
batch mode: the GUI won't wait for an user action.
-y --nosync
Don't synchronize the disks at the end of the operation (danger-
ous).
-s addr --server addr
Give partimaged server's ip address.
-p port --port port
Give partimaged server's listening port.
-g debuglevel --debug debuglevel
Set the debug level to debuglevel (defaults to 1)
-n --nossl
Disable SSL in network mode.
-S --simulate
Simulation of restoration mode.
-a str, --automnt str
Automatic mount with X options. Read the doc for more details.
EXAMPLE
partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz
partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz
partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg
partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2
partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2
SEE ALSO
partimaged(8)
DIAGNOSTICS
You can read options set at compile time running 'partimage -i'.
When using batchmode, exit status is normaly 0.
CAVEATS
For now, only ext2fs, FAT16, FAT32, NTFS, HPFS, reiserfs are supported.
JFS, XFS, UFS are recognized but not yet supported.
FAT12 will never be supported
BUGS
Refer to BUGS file to read them.
AUTHOR
Franck Ladurelle <ladurelf at partimage.org>
Francois Dupoux <fdupoux at partimage.org>
3rd Berkeley Distribution 24 June 2001 partimage(1)
--
David Hayes
david at hayes-family.org
More information about the Discuss
mailing list