---
name: "partclone.restore"
section: "8"
platform: "linux"
package: "partclone"
version: "0.3.52-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/partclone.restore"
---

# partclone.restore(8)

restore partclone image to device.

## NAME

partclone.restore - restore partclone image to device.

## 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*\]

## DESCRIPTION

**partclone.restore** is a part of **Partclone** project to restore all image made from partclone.\[fstype\] or partclone.dd. Partclone provide utilities to backup used blocks and design for higher compatibility of the file system by using existing library, e.g. e2fslibs is used to read the used block of ext2 partition.

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

All partclone utils could be run like partclone.xxx is very similar to fsck or mkfs. For example, for backup/restore hfsplus, just run partclone.hfsp.

## OPTIONS

The program follows the usual GNU command line syntax, with long options starting with two dashes (\`-'). A summary of options is included below.

- **-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 '-' means 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 '-' means send data to stdout.

- **-O** *FILE*, **--overwrite** *FILE*

  Overwrite FILE, overwriting if exists.

- **--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.

- **-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)

- **--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.

- **-d***level*, **--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
```

## DIAGNOSTICS

The following diagnostics may be issued on stderr:

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

| | |
| --- | --- |
| *Code* | *Diagnostic* |
| **0** | Program exited successfully. |
| **1** | Clone or Restore seem failed. |

## BUGS

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

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

## SEE ALSO

[**partclone**(8)](/partclone/8.md), [**partclone.chkimg**(8)](/partclone.chkimg/8.md), [**partclone.restore**(8)](/partclone.restore/8.md), [**partclone.dd**(8)](/partclone.dd/8.md), [**partclone.info**(8)](/partclone.info/8.md)

## AUTHOR

**Yu-Chin Tsai** \<thomas@clonezilla.org\>

## COPYRIGHT

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.
