17.06.2020

DD utility for Windows backup

We will describe how to create data backups on a virtual server under the Windows Server OS using the special DD utility.

A few words about backing up files

Backups is a method of creating a backup copy of important information on a computer or server. It can be carried out manually or automatically under a regular schedule.

The DD utility can be used for operating systems of the Linux family; its commands help with copying files through certain operands. This is one of the oldest utilities, its backups can be opened with a variety of software. The version for the Windows operating system is less functional than the version for Linux. For example, it lacks support for converting files and using block devices.

How to download the utility

Download the utility DD from the special site, because this is third-party software that is widely available to users.

There will be several files in the downloaded archive; the dd.exe application will let you run the utility.

How to use

Using DD on Windows systems is very similar to using it on a Linux command line.

To open the page with the help you should go to the directory with the desired object, and after opening the PowerShell console enter:

./dd.exe --list

If you need a backup copy of the HDD, along with all the information stored on it, this line is useful:

./dd.exe if=<source_drive> of=<full_copy_name> bs=1440k

Demonstration of how to create an image of disk F and transfer it to disk E:

./dd.exe if=.f: of=e:tempdisk1.img bs=8M

The result is:

rawwrite dd for windows version 0.5.

Written by John Newbigin <jn@it.swin.edu.au>

This program is covered by the GPL.  See copying.txt for details

7279+1 records in

7279+1 records out

Decrypt the record:

  1. The if =/dev/sda line is responsible for copying the entire sda hard drive.
  2. The expression bs=8M will help you set a specific amount of cache on your hard disk that will speed up the data copying process. Otherwise, the information will begin to be transferred in small sizes, approximately 512 b each.
  3. The place where the file will be copied is indicated by the command of =/mnt/backup/sda.img. The first two expressions indicate the mount point of the HDD for storing the image, that is, the mnt folder with the backup subfolder.

Please note: before creating backups, you need to make sure that there is enough unallocated space on the desired disk.

The command will help restore the HDD from backup:

./dd.exe if=<full_copy_name> of=<source_drive> bs=8M

For example:

./dd.exe if=e:tempdisk1.img of=.f: bs=8M

That will be:

rawwrite dd for windows version 0.5.

Written by John Newbigin <jn@it.swin.edu.au>

This program is covered by the GPL.  See copying.txt for details

1279+1 records in

1279+1 records out

It is best to make backup copies of data according to the established schedule, then you do not have to worry about the fact that the administrator forgot or did not have time to copy the files. The work is fully automated.

Please note: here, backups are created once in 24 hours, all data is transferred to a disk that is territorially remote from the server itself. The user does not need to configure the backup himself, and backups are stored even in case of server failures.