Tue, Dec 13, 22, ssh root@172.30.1.96 dd if=/dev/sda | gzip -1 - | dd of=image.gz
This is a draft, the content is not complete and of poor quality!
cli
sudo dd if=/dev/sda of=/mnt/extraspace/backup.img.gz bs=20M
sudo dd if=/mnt/yourddimage.img of=/dev/sdX bs=10M
gunzip -c /mnt/yourddimage.img.gz | dd of=/dev/sdX
from remote pc to a local pc
dd if=/dev/sda | gzip -1 - | ssh user@local dd of=image.gz status=progress
ssh user@remote "dd if=/dev/sda | gzip -1 -" | dd of=image.gz status=progress
dd if=/dev/sda | gzip -1 - | pv | ssh user@local dd of=image.gz
pv
is used to monitor the progress of a large dd operation.
The following wiki, pages and posts are tagged with
Title | Type | Excerpt |
---|---|---|
How to backup using dd local or remote pc | post | Tue, Dec 13, 22, ssh root@172.30.1.96 dd if=/dev/sda | gzip -1 - | dd of=image.gz |
Linux-Category.md | post | 카테고리 2단계 (끝) |