1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-10 16:35:43 +02:00
tldr/pages/linux/partclone.md
Managor af85a1f5ae
partclone: add page (#17485)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-08-03 15:10:59 +03:00

16 lines
573 B
Markdown

# partclone
> Copy and restore partitions to and from an image while disregarding empty blocks.
> More information: <https://manned.org/a2disconf.8>.
- Copy a partition into an image:
`sudo partclone.{{ext4|btrfs|fat32|xfs|...}} {{[-c|--clone]}} {{[-s|--source]}} {{/dev/sdXY}} {{[-o|--output]}} {{path/to/backup.img}}`
- Restore a partition from an image:
`sudo partclone.{{ext4|btrfs|fat32|xfs|...}} {{[-c|--clone]}} {{[-s|--source]}} {{path/to/backup.img}} {{[-o|--output]}} {{/dev/sdXY}}`
- Display help:
`partclone.{{ext4|btrfs|fat32|xfs|...}} {{[-h|--help]}}`