Syntax: dd if=/dev/sda | gzip | ssh root@target ‘gzip -d | dd of=/dev/sda’ Example: dd if=/dev/xenvg/ss_mail_root bs=32M |gzip |ssh root@192.168.168.4 ‘gzip -d | dd of=/dev/xenvg/yfmail_root bs=32M’ The authenticity of host Disk Cloning with dd and ssh tunnel 17 July 2010 backup
Assumption: /dev/sdb has problem and need to replace it with a new drive. sdb has two partitions on raid-1 namely /dev/sdb1 = /boot and /dev/sdb3 = / . 1. cat /proc/mdstat to see the raid information. 2. Use mdadm to fail the drives partition(s) and remove it from the Replacing failed raid 1 drive 30 June 2009 backup
List the partitions of a device (sda): sfdisk -l /dev/sda Test and show consistent check status on device (sda): sfdisk -V /dev/sda Two ways to create new partitions from an old device (sda): (a) Copy the entire partition table from one disk (sda) to another (sdb) sfdisk -d Manage partition tables with sfdisk 29 June 2009 Add new tag
Being an IT professional, you not only need to secure your data from those hackers, but also to have a good backup copy when it is needed. I have been using the rsync for remote backup since 1998. Here is a little bash script I used for remote backup. It Using Rsync for Remote Backup 01 February 2009 backup