LoginSignup
2
1

More than 5 years have passed since last update.

Alpine LinuxをVMWareで動かしDISKのバックアップリストア

Last updated at Posted at 2016-07-11
  • ISOイメージが小さかったので選んだ。

Download

iso.png

ネットワーク設定

ip.png

/etc/network/interfaces
auto eth0
iface eth0 inet dhcp
iface eth0 inet static
    address xxxxxxxxxxx
    netmask xxxxxxxxxxx
    gateway xxxxxxxxxxx
設定反映
/etc/init.d/networking restart

sshd有効化

apk update
apk add openssh
passwd root
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
/etc/init.d/sshd restart
  • ssh root@ipaddress
    • ほかの端末から接続すること。ssh localhostはできなかった。

ネットワーク経由でdd

バックアップ

受信側
nc -l 12345 | bzip2 -d | dd bs=16M of=sda.dd
送信側
dd bs=16M if=/dev/sda | bzip2 -c | nc [受信側マシンのIPアドレス] 12345

リストア

受信側
nc -l 12345 | bzip2 -d | dd bs=16M of=/dev/sda
送信側
dd bs=16M if=sda.dd | bzip2 -c | nc [受信側マシンのIPアドレス] 12345

debian isoのrescue modeを使用する場合

リストア

受信側
nc -l -p 12345 | dd bs=16M of=/dev/sda
送信側
dd bs=16M if=sda.dd | nc [受信側マシンのIPアドレス] 12345

dd

wgetでdd
wget -qO- http://myserver.com/clonezilla-live-2.4.7-8-i686.iso \
| dd if=/dev/stdin of=/dev/sda bs=16M
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1