返回列表 發帖
好了,大家可以发言了。

角色

TOP

希望大家有空的时候来做客,聊聊天。

角色

TOP

因为有member反映说我以前在别的论坛写得Links很难找,所以我特别在这里给大家一些链接,那么大家就很简单找到。如果打击需要其他的Links可以跟帖告诉我。

http://www.telecom-cafe.com/foru ... 17574&ptid=3950

TOP

回復 30# 角色


   
有了這些連接,日後找尋相關資料時,就方便得多了。 Thanks 角色兄。

TOP

看来有了【角色茶馆】后,大家讨论都热闹起来,将来大家可能都去过哪一桌也忘,只记得【角色茶馆】了。

角色

TOP

I am busy with the methods to back up CentOS effectively. Do you have a better to do so, please let us know.

YH

TOP

回復 36# 角色


Do you like a simple bash script to tar every directory?

TOP

我也正在使用 ckleea 兄這個 script,現在我設定每星期自動做一次backup,但未試過restore,希望永遠不需要做這個restore 動作吧!

TOP

這是非常簡單的 scripts? 重點是不用擔心 MBR overwrite during partition image restore. 架server係 backup 時仲行緊。

Restore 完全冇問題,所以可以放心。

TOP

哈哈!有了茶馆的帖子,那么有好的东西都放在这里,那么大家就有一个落脚点。

角色

TOP

回復 38# bubblestar

My backup script.
  1. #!/bin/bash
  2. bpath=/data/usb
  3. DTE=`date +%Y%m%d`
  4. export bpath
  5. export DTE
  6. mkdir $bpath/$DTE
  7. cd $bpath/$DTE

  8. tar zcvf bin.tgz /bin
  9. tar zcvf boot.tgz /boot
  10. tar zcvf command.tgz /command
  11. tar zcvf dev.tgz /dev
  12. tar zcvf etc.tgz /etc
  13. tar zcvf home.tgz /home
  14. tar zcvf lib.tgz /lib
  15. tar zcvf media.tgz /media
  16. tar zcvf misc.tgz /misc
  17. tar zcvf mnt.tgz /mnt
  18. tar zcvf opt.tgz /opt
  19. tar zcvf proc.tgz /proc
  20. tar zcvf root.tgz /root
  21. tar zcvf sbin.tgz /sbin
  22. tar zcvf selinux.tgz /selinux
  23. tar zcvf service.tgz /service
  24. tar zcvf srv.tgz /srv
  25. tar zcvf sys.tgz /sys
  26. tar zcvf usr.tgz /usr
  27. tar zcvf var.tgz /var
  28. tar zcvf web.tgz /web
複製代碼

TOP

回復 41# ckleea

谢谢ckleea兄的信息,我有下列问题:

1)你的Restore Script是什么?

2)为什么分开那么多得档案呢?是否有特别含义?

角色

TOP

This is a file/directory backup.

How to restore is
tar zxvf /path/zxvf/dev.tgz

Remember in linux, we do not have registry. All settings are in file based. Only when online, some of the files in /dev and /proc are temporary files created during execution. They can usually be able to back up.

So realtime backup is possible

TOP

Many Thanks.

YH

TOP

The next question is how to quickly restore your system
1. ghost or true image backup / restore is easy to perform and usually very fast. One of the drawbacks I encountered before is the partition after restore may not be bootable in a multi boot environment. Very often when a partition is deleted and re-created, the order in partition table may be changed. In my case, I always write the linux grub boot loader in /dev/sda? or /dev/hda? instead of the MDR i.e. /dev/sda or dev/hda. Hence, this changes in order may result in not bootable restore

2. If I use script, I can control the location of restore and then issue command like this
grub-install --recheck
grub-install /dev/sda1

the first command shows me the bootable partition.

TOP

返回列表