实例2
使用sitback将Linux服务器中数据自动备份、刻录两个步骤进行整合。
为了达到数据备份和光盘刻录整合的目的,需要使用以下脚本来实现。它是来自sitback官方网站的样板脚本。
# Full backup of /home/bean, excluding Images#对/home/bean,目录进行全备份# bean@mrbean.dk 2002# Write the archive to my cd-writer at 0,0,0#将备份数据在指定时间写入CDR刻录机中# (Iomega ZIPCD 650, USB), use speed=2, so that i can 刻录机硬件参数# do other things while the backup is cooking. Also# use on-the-fly copy to avoid too much temporary data.# (my machine has no problem supporting this)#ARCHIVE=0,0,0SPEED=2#Iomega ZIPCD 650, USB刻录机写入速度,CD ON THE FLY#写入方式# It is a huge advantage to have the files directory available# on the cd, not inside an archive, when restoring my# setup, hence the type 'CDRW'#TYPE=CDRW#光盘类型,CDRW可擦写光盘# Targets... Exclude ImagesTARGET=/home/bean#目标文件目录EXCLUDE=/home/bean/Images#目标文件目录中不用备份的目录(即排除备份的目录)# Various stuff. Compression and verification will automagically# be turned off by sitback, but i do not want the warnings either,# so i just turn it off from the beginning...#VERIFY=NO#对备份数据进行校验COMPRESSION=NO#备份数据无需压缩# When done, put a backup report in /home/bean/backup.log#REPORTFILE=/home/bean/backup.log#产生的备份报告文件及路径
关于sitback备份数据的恢复及SSH等安全措施,此处不予举例说明。总的来说,sitback是一款不可多得的Linux操作系统平台中优秀的数据备份和恢复工具,使用sitback可以使得企业实现安全而高效的备份。