INFORMATICS

The Best

Przełącznik języka

Zaproś mnie na KAWE

Jeżeli podoba Ci się strona i chcesz wspomóc projekt!

Postaw mi kawę na buycoffee.to

This Site

Płatnik

CMS

Hardware

Uncategorised

Emulators

Powershell

Storage Array

DNS

Antivirus program

Licznik

2.png8.png9.png9.png7.png4.png8.png
Today253
Yesterday833
This week1884
This month19873
Total2899748

Visitor Info

  • IP: 18.118.164.121
  • Browser: Unknown
  • Browser Version:
  • Operating System: Unknown

Who Is Online

2
Online

poniedziałek, 29 kwiecień 2024 06:25

back up CentOS using the "dd" command

Gwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywna
 

back up CentOS using the "dd" command

Backup to a Disk Image

how to create an image to an external drive

Using the Gnome Disks Utility

  1. 1. Run the Gnome Disks utility from the Ubuntu programs menu - WRITE DISKS
  2. Select the external drive or disk, and then choose “Create Disk image…”.
  3. Create a file name for the image, choose the folder to store the image, and then press the “Start Creating…” button to begin the process.
  4. Wait for the process to finish. It could take a couple of hours to finish.

Using the Terminal

To backup to a compressed image using a terminal, simply run the following command:

sudo sh -c "dd if=/dev/sda status=progress | xz -c > /media/cupc/image.img.xz"

Replace /media/cupc/image.img.xz with the location where you wish to store your disk image.

It may take a couple of hours to complete.

Restore from a Disk Image

 

Using the Gnome Disks Utility

  1. 1.Run the Gnome Disks utility from the Ubuntu programs menu.
  2. Select the 120GB Disk, and then choose “Restore Disk image…”.
  3. Browse to the location of the image file.
  4. Press the “Start Restoring…” button.
  5. Confirm by pressing the “Restore” button.

Using the Terminal

To restore from a compressed image in a terminal, simply run the following command:

sudo sh -c "xz -d -c /media/cupc/image.img.xz | dd of=/dev/sda status=progress"

Replace /media/cupc/image.img.xz with the location of your compressed disk image.

It may take a couple of hours to complete.

Search