mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-26 23:53:07 +00:00
Update cheatsheets
This commit is contained in:
21
tldr/linux/partclone
Normal file
21
tldr/linux/partclone
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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]}}`
|
||||
Reference in New Issue
Block a user