Poor Man’s Ghost / Clone Over the Network

Introduction

Assuming System Rescue CD

Destination System Listens

netstat -lntupe | grep 1515
iptables -I INPUT -p tcp --dport 1515 -j ACCEPT
iptables -L -n
netcat -l -p 1515 | gzip -d | dd bs=16M of=azat.sda.raw.gz
#netcat -l -p 1515 | gzip -d > azat.sda.raw.gz

Note -I not -A

Source System Talks

passwd
#/etc/init.d/sshd restart

ping -c1 REMOTE_ADDRESS
ssh REMOTE_ADDRESS -l root

screen -S dd
nmap -sU -p 1515 BKPSRV_IP
time dd bs=16M if=/dev/sda status=progress | gzip -1 -c | nc BKPSRV_IP 1515
#time gzip -1 -c /dev/sda | nc BKPSRV_IP 1515

Bandwidth Test & Performance

For overall throughput see http://doc.nethence.com/network/iperf

With dd bs=16M we get about 5.5 to 6MB/s. While with netcat stdin and stdout we get about 6680 KB/s, which does not make a big difference. For a disk size of 250GB, it will take about $((250000 / 6)) namely 41666 seconds to clone, 694 minutes, 57 hours.

Resources

Clone Over Network

trash


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun