backup server


มีวิธีที่จะ backup หลายวิธี ขอบันทึกความจำไว้หน่อย

1. ใช้คำสั่ง dd
วิธี Classic โปรแกรม dd ย่อมาจาก disk dump เป็นโปรแกรมพื้นฐานตัวหนึ่งที่มักจะแนบกับกับ Linux อยู่แล้ว

backup
dd if=/dev/hdx of=/dev/hdy
dd if=/dev/hdx of=/path/to/image
dd if=/dev/hdx | gzip > /path/to/image.gz

note:

  • ถ้ามี bad bad มาด้วย
  • HDD ควรมีขนาดเท่ากัน หรืออย่างน้อยขนาดของ HDD ที่จะเก็บข้อมูลที่จะ backup ต้องมีขนาดไม่เล็กกว่าตัวหลัก

restore
dd if=/path/to/image of=/dev/hdx
gzip -dc /path/to/image.gz | dd of=/dev/hdx

MBR backup
dd if=/dev/hdx of=/path/to/image count=1 bs=512

MBR restore
dd if=/path/to/image of=/dev/hdx


อีกแบบ

dd if=/dev/sda1 bs=1M | gzip > /some/backup/dir/back.name.gz
zcat /some/backup/dir/back.name.gz | dd of=/dev/sda1

 

2. partimage
โปรแกรม partimage อาจหาได้จาก finnix

ถ้า backup ด้วยการ compress แบบ bz2 จะเจอข้อความเตือนดังนี้

Because of a bug, you won't be able to restore MBR from any bzip2 compressed image unless you manualy run bzip2 -d on them


ตลกตรงที่รู้ด้วยว่ามี bug ถ้าเป็น bug ก็แก้สิฟ่ะ ฮาาา.... ไม่แน่ใจว่าเป็นข้อจำกัดไหม ถ้าอย่างนั้นน่าจะใช้คำว่า limitation แทนมากกว่า
การใช้งาน

Backup

./partimage -z1 -o -d save /dev/hdb7 /mnt/storage/test_hdb7.partimg.gz


Restore

./partimage restore /dev/hdb7 /mnt/storage/test_hdb7.partimg.gz.000

Restore with MBR

./partimage restmbr /mnt/storage/test_hdb7.partimg.gz.000

CD boot tools

  • Hiren's BootCD เป็นแผ่น until ที่ sysadmin ทุกคนควรมี ข้างในแผ่นมี util มากมาย รวมไปถึง untils บน windows จำนวนมากอีกด้วย

Backup Tools
ImageCenter 5.6 (Drive Image 2002)
Best software to clone hard drive

Norton Ghost 11.5
Similar to Drive Image (with usb/scsi support)

Acronis True Image 8.1.945
Create an exact disk image for complete system backup and disk cloning.

Partition Saving 3.71
A tool to backup/restore partitions. (SavePart.exe)

COPYR.DMA Build013
A Tool for making copies of hard disks with bad sectors

DriveImageXML 2.02
backup any drive/partition to an image file, even if the drive is currently in use

Drive SnapShot 1.39
creates an exact Disk Image of your system into a file while windows is running.

Ghost Image Explorer 11.5
to add/remove/extract files from Ghost image file

DriveImage Explorer 5.0
to add/remove/extract files from Drive image file

WhitSoft File Splitter 4.5a
a Small File Split-Join Tool

Express Burn 4.26
CD/DVD Burner Program to create and record CDs/DVDs, also create/burn .iso and .nrg images

Smart Driver Backup 2.12
Easy backup of your Windows device drivers (also works from PE)

Double Driver 1.0
Driver Backup and Restore tool

DriverBackup! 1.0.3
Another handy tool to backup drivers


ตัดมาเฉพาะ backup tools ที่เหลือไปดูเอาเอง

  • ultimatebootcd ก็เป็น boot cd utils อีกตัวหนึ่ง แต่จำนวนโปรแกรมมีน้อยกว่า Hiren

  • Clonezilla

  • G4L

  • g4u


Links
Create Backup Image
dd command


คำสำคัญ (Tags): #backup#opensource#server
หมายเลขบันทึก: 280713เขียนเมื่อ 27 กรกฎาคม 2009 15:47 น. ()แก้ไขเมื่อ 15 มิถุนายน 2012 11:46 น. ()สัญญาอนุญาต: ครีเอทีฟคอมมอนส์แบบ แสดงที่มา-ไม่ใช้เพื่อการค้า-อนุญาตแบบเดียวกันจำนวนที่อ่านจำนวนที่อ่าน:


ความเห็น (0)

ไม่มีความเห็น

พบปัญหาการใช้งานกรุณาแจ้ง LINE ID @gotoknow
ClassStart
ระบบจัดการการเรียนการสอนผ่านอินเทอร์เน็ต
ทั้งเว็บทั้งแอปใช้งานฟรี
ClassStart Books
โครงการหนังสือจากคลาสสตาร์ท