PARTCLONE.RESTORE(8)

πŸ’– partclone.restore(8) β€” the "put my image back on the disk" girlie πŸ’–

okay so bestie, you're in partclone.restore(8) β€” the restoration half of the Partclone family. yes, that's a manual page section 8, and yes, we're gonna read it together 🫢


✨ NAME ✨

partclone.restore β€” restore partclone image to device.

like literally, it takes your image and puts it back. slay.


🌸 SYNOPSIS 🌸

partclone.restore {[-s | --source] source}
                  {[[-o | --output] [-O | --overwrite]] target}
                  [[-dX | --debug=X]] [[--restore_raw_file]]
                  [[-z | --buffer_size]] [[-N | --ncurses]]
                  [[-q | --quiet]] [[-f | --UI-fresh]] [[-F | --force]]
                  [[-I | --ignore_fschk]] [[--ignore_crc]]
                  [[-C | --nocheck]] [[-R | --rescue]]
                  [[-L | --logfile] logfile] [[-w | --skip_write_error]]
                  [[--write-direct-io]] [[-w | --skip_write_error]]
                  [[-E | --offset=X]] [[-T | --btfiles]]
                  [[-t | --btfiles_torrent]] [[-B | --no_block_detail]]
                  [[--json-status] FILE] [[--json-fresh] N]

(fr fr, that's the whole shape of it β€” brackets everywhere, she's flexible πŸ’…)


πŸ¦‹ DESCRIPTION πŸ¦‹

partclone.restore is a part of the Partclone project, and its whole job is to restore all image made from partclone.[fstype] or partclone.dd. Partclone provide utilities to backup used blocks and is designed for higher compatibility of the file system by using existing library β€” like, e.g. e2fslibs is used to read the used block of ext2 partition. so yeah, it's not out here reinventing the wheel, she's borrowing the good one πŸ‘‘

Partclone supported file system include btrfs, ext2, ext3, ext4, reiserfs, reiser4, xfs, jfs and zfs for LINUX. it also support some non-linux operation system, ex: NTFS, FAT, EXFAT (for Windows), HFS plus (APPLE MAC OS), UFS2 (FreeBSD), VMFS (VMWare Vsphere). 🌈 worldwide coverage honestly.

All partclone utils could be run like partclone.xxx β€” very similar to fsck or mkfs. For example, for backup/restore hfsplus, just run partclone.hfsp. that's it, that's the whole vibe check ✨


πŸŽ€ OPTIONS πŸŽ€

The program follows the usual GNU command line syntax, with long options starting with two dashes (-). A summary of options is included below. no cap, here we go:

  • -s FILE, --source FILE β€” Source FILE. The FILE could be a image file (made by partclone) or device depend on your action. Normally, backup source is device, restore source is image file.
Receving data from pipe line is supported ONLY for restoring β€” just ignore -s option or use - to mean receive data from stdin. 🧚
  • -o FILE, --output FILE β€” Output FILE. The FILE could be a image file (partclone will generate) or device depend on your action. Normally, backup output to image file and restore output to device.
Sending data to pipe line is also supported ONLY for back-up β€” just ignore -o option or use - to mean send data to stdout. πŸ“
  • -O FILE, --overwrite FILE β€” Overwrite FILE, overwriting if exists. she will NOT ask twice πŸ’€
  • --restore_raw_file β€” Creating special raw file for loop device.
  • -L FILE, --logfile FILE β€” put special path to record partclone log information. (default /var/log/partclone.log)
  • -R, --rescue β€” Continue after disk read errors. brave girl behavior tbh πŸ’ͺ
  • -C, --no_check β€” Don't check device size and free space.
  • -N, --ncurses β€” Using Ncurses Text User Interface.
  • -X, --dialog β€” Output message as Dialog Format.
  • -I, --ignore_fschk β€” Ignore filesystem check.
  • --ignore_crc β€” Ignore crc check error.
  • -F, --force β€” Force progress.
  • -f sec, --UI-fresh sec β€” put special second to different interval.
  • --json-status[=FILE] β€” Write progress status to FILE in JSON format, periodically refreshed, so external tools can poll the restore status (default FILE: /var/log/partclone.json). it's giving observability ✨
  • --json-fresh=N β€” JSON status update interval in seconds (default: 1, minimum: 1).
  • -z size, --buffer_size size β€” Read/write buffer size (default: 1048576).
  • -q, --quiet β€” Disable progress message. shy mode πŸ™ˆ
  • -dlevel, --debug level β€” Set the debug level [1|2|3].
  • -h, --help β€” Show summary of options.
  • -v, --version β€” Show version of program.

πŸ’œ FILES πŸ’œ

  • /var/log/partclone.log β€” The log file of partclone.restore.

⭐ EXAMPLES ⭐

restore /dev/hda1 from hda1.img and display debug information.

 partclone.restore -d -s hda1.img -o /dev/hda1

restore image from clonezilla (split, gzip,) with stdin source

 cat  sda1.ext3-ptcl-img.gz.a*  | gunzip -c | partclone.restore -d -s - -o /dev/sda1

restore raw image from partclone.dd

 partclone.dd  -d  -c  -s  /dev/sda1  -o  - | partclone.restore -d -s - -o /dev/sdb1

see how the pipe just flows? iconic 🌊 (and yes, keep the spacing exactly like that, it's part of the aesthetic)


πŸ”₯ DIAGNOSTICS πŸ”₯

The following diagnostics may be issued on stderr:

partclone.restore provides some return codes, that can be used in scripts:

  • Code 0 β€” Program exited successfully. πŸŽ‰
  • Code 1 β€” Clone or Restore seem failed. 😭
bestie, if you're scripting this, check that exit code. fr fr. do not ignore her.

🌸 BUGS 🌸

Report bugs to thomas@clonezilla.org or http://partclone.org.

You can get support at http://partclone.org


πŸ’… SEE ALSO πŸ’…

partclone(8), partclone.chkimg(8), partclone.restore(8), partclone.dd(8), partclone.info(8)

(go read the whole friend group, they're all lovely 🫢)


πŸ‘‘ AUTHOR πŸ‘‘

Yu-Chin Tsai <thomas@clonezilla.org>


Copyright Β© 2007 Yu-Chin Tsai

This manual page was written for the Debian system (and may be used by others).

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at your option) any later version published by the Free Software Foundation.

On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.


✨ and that's the whole page bestie ✨ this little beauty is partclone.restore, from the Partclone User Manual, dated 10/28/2026 β€” go restore something and text me how it went πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from