partimage(1)

πŸŽ€ partimage(1) πŸŽ€

hiiiii bestie πŸ’– welcome to partimage(1), aka the Partition Image Manual, aka the tool that backs up your disk partitions and brings them back to life. this whole page is literally the glow-up guide for the partimage command and i'm gonna walk you through every single flag, no cap. ✨


🌸 NAME 🌸

partimage β€” back up and restore disk partitions πŸ’…


✨ SYNOPSIS ✨

okay so here's the shape of it, verbatim, don't @ me:

partimage [ -bcdehimMnoSvwy ] [-B 'pattern response string']
[-z compresslevel] [-V volumesize] [-f actionatend] [-s server]
[-p port] [-a mountoptions] [-U username] [-P password] [-g loglevel] [
save device image_file ]
partimage [ -bcdehimMnoSvwy ] [-B 'pattern response string']
[-z compresslevel] [-V volumesize] [-f actionatend] [-s server]
[-p port] [-a mountoptions] [-U username] [-P password] [-g loglevel] [
restore device image_file/'stdin' ]
partimage [ restmbr image_file ]
partimage [ imginfo image_file ]

so basically you got four modes: save, restore, restmbr, and imginfo. pick your fighter. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

partimage backs up disk partitions into image files and restores them. that's the whole vibe. archive it, un-archive it, slay. 🫢


πŸ’… OPTIONS πŸ’…

every single one, in order, no skips. this is the main character section fr fr.

  • -z val, --compress val β€” sets the image file compression level. your options are:
    • val=0: don't compress: very fast but very big image file πŸƒ
    • val=1: compress using gzip: fast and small image file (this is the default, bestie) πŸ“
    • val=2: compress using bzip2: very slow and very small image file 🐌
  • -c, --nocheck β€” don't check the partition before saving. skipping the vibe check, bold move.
  • -o, --overwrite β€” overwrite the existing image file without confirmation. no "are you sure?", just chaos. πŸ’€
  • -d, --nodesc β€” don't ask any description for the image file. no caption needed, it's giving mysterious. πŸ™ˆ
  • -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. it's like a lil checkpoint break. ⭐
  • -e, --erase β€” erase empty blocks on restore with zero bytes.
  • -m, --allowmnt β€” don't fail if the partition is mounted. Dangerous! ⚠️ lowkey playing with fire, highkey iconic.
  • -M, --nombr β€” don't create a backup of the MBR (Mast Boot Record) in the image file.
  • -h, --help β€” show help. your lil helper. πŸŽ€
  • -v, --version β€” show version.
  • -f action, --finish action β€” action to do if finished successfully:
    • action=0: wait (do nothing) 🧘
    • 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.
  • -B 'pattern response string', --fully-batch 'pattern response string' β€” full batch mode: the GUI is not being displayed. rather, status messages are displayed as normal text. the pattern response string has the following format:
Β΄<glob-pattern>=<response-value>;...Β΄

where the glob pattern is matched against the string <window-title>/<message-text> of the message dialogue box to be displayed. for dialog boxes with buttons in the window, the <response> must be the exact button text. the pattern response string usually needs to be quoted as above.

  • -y, --nosync β€” don't synchronize the disks at the end of the operation. Dangerous! 😭
  • -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. no encryption era. πŸ”“
  • -S, --simulate β€” simulation of restoration mode. pretend restore, zero consequences, main character energy. ✨
  • -a str, --automnt str β€” automatic mount with X options. read the doc for more details. πŸ“–
  • -U name, --username=name β€” username to authenticate to partimage server.
  • -P pass, --password=pass β€” password for authentication of user to partimage server. 🀫

🌈 EXAMPLE 🌈

here's exactly how the cool kids do it, copied character for character:

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
cat debian.partimg.000 debian.partimg.001 | partimage restore /dev/hda1
stdin
partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2
partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2

look at that last one, imginfo just peeking at the tea without touching anything. obsessed. β˜•


🫢 SEE ALSO 🫢

partimaged(8) β€” go say hi to its server-side bestie. πŸ’œ


πŸ”₯ DIAGNOSTICS πŸ”₯

you can read options set at compile time running 'partimage -i'.

when using batchmode, exit status is normaly 0. periodt.


⭐ CAVEATS ⭐

supported file systems: Ext2/3, Reiser3, FAT16/32, HPFS, JFS, XFS, UFS(beta), HFS(beta), NTFS(experimental).

FAT12 will never be supported. never. it's not a phase, it's a lifestyle. πŸ’€


🧚 BUGS 🧚

refer to BUGS file to read them. the receipts are in there, iykyk. πŸ™ˆ


πŸ‘‘ AUTHOR πŸ‘‘

Franck Ladurelle <ladurelf@partimage.org> Francois Dupoux <fdupoux@partimage.org>


okay that's the whole page bestie, you made it, i'm so proud πŸ₯ΉπŸ’– this was 3rd Berkeley Distribution, dated 30 May, 2002, and yes it's still out here being partimage(1) in the manual. go forth and partition responsibly, mwah πŸ’…βœ¨πŸŒΈ