複製・復元:etch編

「複製・復元:etch編」の編集履歴(バックアップ)一覧はこちら

複製・復元:etch編」(2012/03/30 (金) 20:31:43) の最新版変更点

追加された行は緑色になります。

削除された行は赤色になります。

***通常モードOSの複製 -EMモードへの移行&br()コマンドを&bold(){&color(red){mtdblock2}}に変更し実行 KURO-BOX:~# KURO-BOX:~# echo -n "NGNG" > /dev/mtdblock2 KURO-BOX:~# reboot ・ ・ ・ -通常モードOSの[[圧縮>http://www.k-tanaka.net/unix/tar.html]] # # mount -t ext3 /dev/hda1 /mnt;mount -t ext3 /dev/hda3 /mnt2 # # cd /mnt # # tar cvf /mnt2/etch.tar . ・ ・ ・ # -玄箱因り圧縮ファイルを保守PCにダウンロードし再起動を実行 # # echo -n 'OKOK' > /dev/fl3 # # reboot ---- ***通常モードOSの復元 -EMモードへの移行 -保守PC因り玄箱に所要ファイルをアップロード -EMモードにて通常モードのOSを展開 # # mount -t ext3 /dev/hda1 /mnt;mount -t ext3 /dev/hda3 /mnt2 # # cd /mnt # # tar xvf /mnt2/etch.tar ・ ・ ・ # # echo -n 'OKOK' > /dev/fl3 # # reboot ---- ***ユーザ利用領域の複製 -エディタの起動 KURO-BOX:~# KURO-BOX:~# vi backup.sh ・ ・ ・ -シェルスクリプトの作成 cd date >> result tar cf `date +%y%m%d`.tar /mnt/share/* cp *.tar /media/usb0/ date >> result shutdown -h now -シェルスクリプトの実行 KURO-BOX:~# KURO-BOX:~# sh backup.sh & ・ ・ ・

表示オプション

横に並べて表示:
変化行の前後のみ表示:
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。