Are you using linux based version? What I am doing is to have scripts for the following
1. full server backup
2. selective backup of database and config files
It runs every day and every week depending on your need.作者: 浮雲1965 時間: 2012-3-21 17:34
Yes, I am using Linux based version, which is a guest OS in VM.
Can you share your strips of backup?作者: ckleea 時間: 2012-3-21 20:48
#!/bin/bash
bpath=/backup
DTE=`date +%Y%m%d`
export bpath
export DTE
mkdir $bpath/$DTE
cd $bpath/$DTE
tar zcvf agispeedy.tgz /agispeedy
tar zcvf bin.tgz /bin
tar zcvf boot.tgz /boot
tar zcvf command.tgz /command
tar zcvf dev.tgz /dev
tar zcvf etc.tgz /etc
tar zcvf home.tgz /home
tar zcvf lib.tgz /lib
tar zcvf media.tgz /media
tar zcvf misc.tgz /misc
tar zcvf mnt.tgz /mnt
tar zcvf opt.tgz /opt
tar zcvf proc.tgz /proc
tar zcvf root.tgz /root
tar zcvf sbin.tgz /sbin
tar zcvf selinux.tgz /selinux
tar zcvf service.tgz /service
tar zcvf srv.tgz /srv
tar zcvf sys.tgz /sys
tar zcvf usr.tgz /usr
tar zcvf var.tgz /var
tar zcvf web.tgz /web
cp /opt/script/restore .
echo "Remember to update the restore script"
複製代碼
作者: ckleea 時間: 2012-3-21 20:50
The above script has been used by me for long time. It is not fully automatic because restore process is rather manual. However, I have not problem to do this.
You may copy the above into a text file
chmod a+x textfile
then use webmin to set it to run at weekly base.作者: bubblestar 時間: 2012-3-21 22:29
I am interested in the second last statement of your restore script. Could you elaborate and share with us as well? Thanks.作者: ckleea 時間: 2012-3-22 06:16
The restore scripts have to be modified to suit individual need. For me, I seldom restore. Only 2 episodes - recently because my server starts crazy in not able to send email and about 1.5 years ago when I switch the hardware from one ATOM machine to another ATOM machine with new chipset.
The beauty of having a linux system is that Most files are text based (no registry or binary codes), installation, backup and restore are much simple.作者: 浮雲1965 時間: 2012-3-22 14:22
Thank you very much!作者: ckleea 時間: 2012-3-22 21:46
You need to adapt to your requirement.
If you are using VM, you may mount a host directory into the VM, then backup to that directory.
For restore, you need to boot from an linux iso and works out the path, partition.
But the simplest way in VM is just make a snapshot or shutdown for a while and duplicate the VM imagw作者: bubblestar 時間: 2012-3-24 11:39
Successfully grasp the technique to restore Asterisk server from 1 partition in an old HDD to another different partition in new HDD now.