![]() The white box server uses an Intel E3200 CPU which during the test stayed at around 87% utilization, a faster CPU should provide better throughput. In a not so scientific test done between a white box server(sender) and a HP Quad Core server(receiver) it took 40.6 minutes to compress 80GB of data in to a 21GB image and transfer the result at a rate of 8.4MB/s(over a Gigabit network). But, because I am moving data across the Internet the security provided by OpenSSH is worth it. Remember that using OpenSSH or any other encrypted protocol for the transfer will slow down the progress and specifically impact CPU load during the cloning. Once again DD will be in charged of writing the image to /dev/sdb. Gunzip will be used to decompress the image crated by Gzip. Ssh âdd if=/home/user/â | gunzip -1 - | dd of=/dev/sdbÄ®xplanation: Using OpenSSH log in to the remote system where the image is stored and with DD pull the image. Restoring the image is not that different from the command used to backup the image. gz extension to indicate compression is being used. The image will then be transferred via OpenSSH using the provided user credentials to the user directory /home/user. Gzip will be used for compression, - c means Write on standard output, keep original files unchanged, -fast mean Compress faster at the expense of high compression ration. This command will copy, compress and send the image to the remote server.Äd if=/dev/sdb | gzip -c âfast | ssh âdd of=/home/user/âÄ®xplanation: DD has been instructed to copy the drive /dev/sdb. You can use the lshw (Hardware Lister) command to discover all available lshw -C diskĬapabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ramĬonfiguration: ansiversion=5 status=nodiscĬapabilities: partitioned partitioned:dosĬonfiguration: signature=000e4a4e Backup To Remote Server Not doing so may result in possible data corruption. Remember to un-mount the drive you wish to clone. What is great about this combination is that you can backup and restore the image using the same tools. Also, it would be wise to compress the resulting image, I rather have the system spend the extra effort compressing the image using Gzip than to thave the uncompressed image taking more space than it should. It doesnât hurt to backup valuable data, accidents happen. The case for making use of this method is for when you either lack the local space to store the image or want to keep a backup in a remote system. Thanks to DD, Gzip, and OpenSSH I am able to make an exact copy of a drive, compress the resulting drive image while sending the resulting data to another remote system. In more than one occasion Iâve been asked to copy or backup an entire drive from one remote system to a second remote remote system, my preferred method for accomplishing this task is by making use of three different tools available in UNIX-like operating systems. It will simply concatenate the data of the second gzip stream to the original filename of the first gzip stream.Clone a Hard Drive over the Network with DD However, not even the gzip tool does support such exotic gzip files not even with the -name option. Note that theoretically gzip could be used as an archive format because it does support storing original file names, which might be used to store paths, and because multiple gzip streams (all with different file names) are allowed to be concatenated to each other. used by bgzip to store the length of the compressed block)įile.read(struct.unpack('
0 Comments
Leave a Reply. |