BackUp Server and Disaster Recovery
From LNLEpicsWiki
[edit] BackUp Server
The BackUp Server is a machine named pcXXX.lnl.infn.it. The backup procedure is based on a raw script which use rsync. The files are stored without compression and saving the original permission and owner. That is a snapshot backup. The folders backed up are: home, etc, var, opt, ioc, repos, root. The script to do this is /root/backupRsync.sh :
#!/bin/sh
# Usage:
# from root prompt:
# ./backupRsync.sh
# Destination host machine name
DEST="pcXXX.lnl.infn.it"
# User that rsync will connect as
# Are you sure that you want to run as root, though?
USER="giacchini"
#BACKUP_DIRS="/home /etc /var /opt /ioc /repos"
BACKUP_DIR1=/home
BACKUP_DIR2=/etc
BACKUP_DIR3=/var
BACKUP_DIR4=/opt
BACKUP_DIR5=/ioc
BACKUP_DIR6=/repos
BACKUP_DIR7=/root
BACKUP_DEST_DIR="/home/giacchini/bu/epics1"
OPTS="-ave ssh --delete"
#Only run rsync if $DEST responds.
VAR=`ping -s 1 -c 1 $DEST > /dev/null; echo $?`
if [ $VAR -eq 0 ]; then
rsync $OPTS $BACKUP_DIR1 $USER@$DEST:$BACKUP_DEST_DIR
rsync $OPTS $BACKUP_DIR2 $USER@$DEST:$BACKUP_DEST_DIR
rsync $OPTS $BACKUP_DIR3 $USER@$DEST:$BACKUP_DEST_DIR
rsync $OPTS $BACKUP_DIR4 $USER@$DEST:$BACKUP_DEST_DIR
rsync $OPTS $BACKUP_DIR5 $USER@$DEST:$BACKUP_DEST_DIR
rsync $OPTS $BACKUP_DIR6 $USER@$DEST:$BACKUP_DEST_DIR
rsync $OPTS $BACKUP_DIR7 $USER@$DEST:$BACKUP_DEST_DIR
else
echo "Cannot connect to $DEST."
The script is not croned up to now: it mean that is in charge of the EPICS administrator play that.
[edit] Disaster Recovery
The disaster recovery tool select is Mondorescue. That is split in two main functions: mondoarchive and mondorescue. Obviously, the first one make the backup and the second retrive and may replace tha data files. The data has been stored in DVDs. The first one DVD can boot and give the possibility to restore/compare/extract the files. The Mondo is used like disaster recovery, therefore the complete disk is stored included the NTFSs partitions in order to be able to rebuild the machine from the scratch.
The Mondo Rescue Site should have all the remaining questions covered.
