logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

partclone.imager - unsupported file system backup utility.(like `dd` )

Author

Yu-ChinTsai <thomas@nchc.org.tw>

Bugs

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

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

Description

partclone.imager 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 and jfs 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
       smiliar fsck or mkfs. For example, for backup/restore hfsplus, just run partclone.hfsp.

Diagnostics

       The following diagnostics may be issued on stderr:

       partclone.imager provides some return codes, that can be used in scripts:
       CodeDiagnostic0      Program exited successfully.
       1      Clone or Restore seem failed.

Examples

            clone /dev/hda1 to hda1.dd.img and display debug information.
              partclone.dd -c -d -s /dev/hda1 -o hda1.dd.img

            restore /dev/hda1 from hda1.dd.img and display debug information.
              partclone.dd -r -d -s hda1.dd.img -o /dev/hda1

Files

       /var/log/partclone.log
           The log file of partclone.imager

Name

       partclone.imager - unsupported file system backup utility.(like `dd` )

Options

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

       -sFILE, --sourceFILE
           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.

       -oFILE, --outputFILE
           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.

       -OFILE, --overwriteFILE
           Overwrite FILE, overwriting if exists.

       -c, --clone
           Save partition to the special image format.

       -r, --restore
           Restore partition from the special image format.

       -b, --dev-to-dev
           Local device to device copy on-the-fly, source and output both are device.

       --restore_raw_file
           Creating special raw file for loop device.

       -lFILE, --logfileFILE
           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, --ncurse
           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.

       -fsec, --UI-freshsec
           put special second to different interval.

       -zsize, --buffer_sizesize
           Read/write buffer size (default: 1048576)

       -q, --quiet
           Disable progress message.

       -dlevel, --debuglevel
           Set the debug level [1|2|3]

       -h, --help
           Show summary of options.

       -v, --version
           Show version of program.

See Also

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

Synopsis

partclone.imager {[-c | --clone] [-r | --restore] [-b | --dev-to-dev]} {{-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] [-X | --dialog] [-C | --nocheck] [-R | --rescue]
                        [{-L | --logfile} logfile]

See Also