From 8200d3cb8ae320070efdbdcaed9b718ca275c5b1 Mon Sep 17 00:00:00 2001 From: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> Date: Sat, 5 Jun 2021 20:53:27 +0100 Subject: [PATCH] dd: add backup commands (#6047) --- pages/common/dd.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/common/dd.md b/pages/common/dd.md index b71464cc97..5815afee21 100644 --- a/pages/common/dd.md +++ b/pages/common/dd.md @@ -19,6 +19,14 @@ `dd if=/dev/zero of={{file_1GB}} bs=1024 count=1000000` +- Generate a system backup into an IMG file and show the progress: + +`dd if=/dev/{{drive_device}} of={{path/to/file.img}} status=progress` + +- Restore a drive from an IMG file and show the progress: + +`dd if={{path/to/file.img}} of=/dev/{{drive_device}} status=progress` + - Check progress of an ongoing dd operation (Run this command from another shell): `kill -USR1 $(pgrep ^dd)`