partclone.dd8
Unsupported file system backup utility.(like `dd` )
Usage
partclone.dd [{-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}]]
[[{-i | --ignore_crc}]]
[[{-C | --nocheck}]]
[[{-L | --logfile}]
logfile]
[[{-w | --skip_write_error}]]
[[{-E | --offset=X}]]
[[{-T | --btfiles}]]
[[{-t | --btfiles_torrent}]]
[[{-B | --no_block_detail}]]
[[--binary-prefix]]
[[--prog-second]]
[[--json-status]
FILE]
[[--json-fresh]
N]
[[--write-direct-io]]
[[--read-direct-io]]
[[{-S | --device-size}]]
Overview
partclone.dd is a part of Partclone project to clone unsupported file system with dd method. It will backup all block from partition. 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 and FAT (for Windows), HFS plus(APPLE MAC OS), UFS2(FreeBSD), VMFS(VMWare Vsphere).
All partclone utils could be run like partclone.xxx is very similar 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.
-
-W FILE, --restore_raw_file FILE -
create special raw file for loop device.
-
--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)
-
-C, --no_check -
Don't check device size and free space.
-
-N, --ncurses -
Using Ncurses Text User Interface.
-
-I, --ignore_fschk -
Ignore filesystem check.
-
-i, --ignore_crc -
Ignore crc check error.
-
-F, --force -
Force progress.
-
-f sec, --UI-fresh sec -
put special second to different interval.
-
-z size, --buffer_size size -
Read/write buffer size (default: 1048576)
-
-q, --quiet -
Disable progress message.
-
-dlevel, --debug level -
Set the debug level [1|2|3]
-
-w, --skip_write_error -
Continue restore while write errors
-
--write-direct-io -
Writing data to TARGET partition without cache
-
--read-direct-io -
Reading data from SOURCE partition without cache
-
-S, --device-size -
Define device size
-
-B, --no_block_detail -
Show progress message without block detail
-
--binary-prefix -
Show progress with bit size (default is MB, GB...)
-
--prog-second -
Show progress in seconds (default is minute)
-
--json-status[=FILE] -
Write progress status to FILE in JSON format, periodically refreshed, so external tools can poll the clone/restore status (default FILE: /var/log/partclone.json)
-
--json-fresh=N -
JSON status update interval in seconds (default: 1, minimum: 1)
-
-E, --offset=X -
Add offset X (bytes) to OUTPUT
-
-T, --btfiles -
Restore block as file for ClonezillaBT.
-
-t, --btfiles_torrent -
Restore block as file for ClonezillaBT but only generate torrent.
-
-h, --help -
Show summary of options.
-
-v, --version -
Show version of program.
Files
/var/log/partclone.log
The log file of partclone.dd
Examples
clone /dev/hda1 to hda1.dd.img and display debug information. partclone.dd -d -s /dev/hda1 -o hda1.dd.img restore /dev/hda1 from hda1.dd.img and display debug information. partclone.dd -d -s hda1.dd.img -o /dev/hda1
Diagnostics
The following diagnostics may be issued on stderr:
partclone.dd provides some return codes, that can be used in scripts:
| Code | Diagnostic |
| 0 | Program exited successfully. |
| 1 | Clone or Restore seem failed. |
Releases
8 releases since Debian 7 (Wheezy); the text changed 5 times.
--binary-prefix since Debian 13 (Trixie);
--btfiles since Debian 13 (Trixie);
--btfiles_torrent since Debian 13 (Trixie);
--buffer_size since Debian 8 (Jessie);
--device-size since Arch Linux 2026-11-01;
--json-fresh since Arch Linux 2026-11-01;
--json-status since Arch Linux 2026-11-01;
--ncurses since Debian 12 (Bookworm);
--no_block_detail since Debian 13 (Trixie);
--offset since Debian 13 (Trixie);
--prog-second since Debian 13 (Trixie);
--read-direct-io since Debian 13 (Trixie);
--restore_raw_file since Debian 9 (Stretch);
--skip_write_error since Debian 13 (Trixie);
--write-direct-io since Debian 13 (Trixie);
-B since Debian 13 (Trixie);
-E since Debian 13 (Trixie);
-L since Debian 12 (Bookworm);
-N since Debian 8 (Jessie);
-S since Arch Linux 2026-11-01;
-T since Debian 13 (Trixie);
-W since Debian 13 (Trixie);
-d since Debian 8 (Jessie);
-i since Debian 13 (Trixie);
-t since Debian 13 (Trixie);
-w since Debian 13 (Trixie);
-z since Debian 8 (Jessie).
--blocks-per-checksum until Debian 13 (Trixie);
--checksum-mode until Debian 13 (Trixie);
--clone until Debian 7 (Wheezy);
--dev-to-dev until Debian 7 (Wheezy);
--dialog until Debian 12 (Bookworm);
--domain until Debian 13 (Trixie);
--ncurse until Debian 11 (Bullseye);
--offset_domain until Debian 13 (Trixie);
--rescue until Debian 13 (Trixie);
--restore until Debian 7 (Wheezy);
--restore_row_file until Debian 8 (Jessie);
-D until Debian 13 (Trixie);
-R until Debian 13 (Trixie);
-X until Debian 12 (Bookworm);
-aX until Debian 13 (Trixie);
-b until Debian 7 (Wheezy);
-c until Debian 7 (Wheezy);
-dX until Debian 7 (Wheezy);
-kX until Debian 13 (Trixie);
-l until Debian 11 (Bullseye);
-r until Debian 7 (Wheezy).