BMS-HOSxP Community

HOSxP => Linux => ข้อความที่เริ่มโดย: Bkcha ที่ พฤศจิกายน 30, 2012, 09:29:04 AM

หัวข้อ: สอบถามการ gost centOS หน่อยครับ
เริ่มหัวข้อโดย: Bkcha ที่ พฤศจิกายน 30, 2012, 09:29:04 AM
ขอวิธีการทำหน่อยครับ ใครพอทราบบอกหน่อยครับผม
ขอบคุณครับ
หัวข้อ: Re: สอบถามการ gost centOS หน่อยครับ
เริ่มหัวข้อโดย: nongtan ที่ ธันวาคม 03, 2012, 20:01:53 PM
config ไว้เยอะหรอครับ  ลำพัง  OS+MySQL server  ไม่น่าจะติดตั้งและ config นานนะครับ  ยิ่งตอนนี้มี tool ของอาจารย์ คือตัว Xtrabackup  แทบจะไม่ต้อง config อะไรมากมายเลยนะเนี๊ย :D :D ;D

The best tool to use for this is probably dump, which is a standard linux tool and will give you the whole filesystem. I would do something like this:
*********************************
/sbin/dump -0uan -f - / | gzip -2 | ssh -c blowfish user@backupserver.example.com dd of=/backup/server-full-backup-`date '+%d-%B-%Y'`.dump.gz
**********************************
This will do a file system dump of / (make sure you don't need to dump any other mounts!), compress it with gzip and ssh it to a remote server (backupserver.example.com), storing it in /backup/. If you later need to browse the backup you use restore:
********************************
restore -i
*******************************
Another option, if you don't have access to dump is to use tar and do something like

tar -zcvpf /backup/full-backup-`date '+%d-%B-%Y'`.tar.gz --directory / --exclude=mnt --exclude=proc --exclude=tmp .