There is a server with ubuntu 9 without a graphical shell, there is no login and password for it, you need to make a full backup of the server using the Live CD. How to do it? Can I connect the HDD server to a computer with Ubuntu with a graphical shell and make ctrl + c ctrl + v?

  • 2
    You can make a disk image using the dd utility - ilyaplot
  • one
    Boot from the LiveCD and dump the entire disk with some Acronis or something similar. If this is a server (a piece of hardware, not an OS), then there is most likely a raid, you will not connect it so simply to your computer. - Alekcvp 1:59 pm

3 answers 3

First you need to give an answer to the question - for what purpose is the dump (copy) of the server taken?

For example, a dump may be needed for data recovery or forensic purposes.

  1. The easiest, but not necessarily the right way is to connect a second drive and use the dd utility. As an argument, if you specify the source drive, and as of, either the file or drive destination (not less than the initial one). Example command: dd if=/dev/sdb of=usb-image.dsk

  2. Slightly less simple. Download Acronis TrueImage as a bootable ISO disk and make a sector copy of it. The downsides are that if Acronis does not know the file system, then the image will be volume as the original hard drive. If he knows, then he can not free space on the file system to copy and the image will take exactly as much space as the files themselves.

  3. Make a file-by-file copy of any of the Linux backup utilities. Their list can be found here . The most common one is rsync . Given that they make a file image, then you can always extract an arbitrary file from it.

  • Copying is necessary for the purpose of restoration of working capacity on the same server. That is, I want to put another system on the server, but I need the ability to restore all data before reinstalling. Thank you - Vladimir

One of my "home" options is disk dump via ssh . Long, tedious, but sometimes there is no other way out. The bonus is that the server can not be unscrewed:

  dd if=/dev/sdX bs=1M | ssh -carcfour128 XYZQ 'dd of=/srv/backups/server.big' 

Here we have two instances of dd , the first one works on a 'donor' and transfers data via stdio to ssh . ssh runs dd on the receiver and writes data to a regular file.

-carcfour128 causes ssh use a less monstrous cipher when transferring data. So if protection is not important to you, you can win at the rate of 20 percent.

    A similar problem has already been. There is a solution: https://ru.stackoverflow.com/a/456432/191416 . It is more convenient and faster dd .