XS Backup and Disaster Recovery: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:SchoolServer]] |
|||
This page deals with Disaster Recovery for the School Server (XS) and does not deal with backup and disaster recovery for the XO's. There are some ideas for these issues on the [[Nepal:Redundancy]] page. |
This page deals with Disaster Recovery for the School Server (XS) and does not deal with backup and disaster recovery for the XO's. There are some ideas for these issues on the [[Nepal:Redundancy]] page. |
||
Line 19: | Line 21: | ||
== Current Solution == |
== Current Solution == |
||
The [http://www.olenepal.org OLE Nepal] team is focusing on |
The [http://www.olenepal.org OLE Nepal] team is focusing on Mondo Rescue and rsync for backing up the XS |
||
=== Installing |
=== Installing Mondo Rescue on XS-160 === |
||
Here is a [[Image:LiveBackupQuickstart.pdf|thumb|PDF]] that explains how to set up LiveBackup in detail. This pdf was passed to me by a friend. I can't find it online. |
|||
# Download the Fedora Core 7 RPM's for Mondo Rescue here: http://mondorescue.muskokamug.org/fedora/7/ . You need the RPM's for afio, buffer, mindi, mindi-busybox, and mondo |
|||
Optional: You may need to change from the OLPC repositories to the fedora repositories. To do this: |
|||
## afio-2.4.7-1.i386.rpm |
|||
# edit /etc/yum.conf ''vi yum.conf'' |
|||
## buffer-1.19-1.i386.rpm |
|||
# Comment out ''# reposdir=/etc/yum.repos.olpc.d'' |
|||
## mindi-busybox-1.2.2-3.fc7.i386.rpm |
|||
# add ''reposdir=/etc/yum.repos.d'' |
|||
## mindi-1.2.4-1.fc7.i386.rpm |
|||
## mondo-2.2.4-1.fc7.i386.rpm |
|||
# Install them using rpm, note you should put mindi-busybox before mindi |
|||
# rpm -ivh afio....rpm buffer...rpm mindi-busybox...rpm mindi...rpm mondo...rpm |
|||
# You're done! |
|||
=== Back up the XS Sytem Files === |
|||
# Install qemu ''yum install qemu'', this is useful for testing your backup |
|||
# |
|||
# Login as root |
|||
=== Using LiveBackup to Backup the XS === |
|||
# Change the runlevel to 1 '''telinit 1''' this is pretty crucial as it will shutdown mysql, apache, dhcpd, named, all the services that could change important during your backup |
|||
# Type ''bash# mondoarchive'' note: don't type sudo, mondoarchive doesn't like sudo |
|||
# Choose '''DVD''' if you are going to use DVD |
|||
# Select '''Maximum''' compression to ensure everything fits on your DVD |
|||
# Choose the DVD directory, '''/dev/scd0''' |
|||
# Backup Path '''/''' |
|||
# Exclude Paths, nothing for now, may want to exclude '''/library''' later as we will use this folder for storing user data |
|||
# Alert, Verify Backups? Choose '''Yes''' |
|||
# Alert - Is your kernel Sane? Choose '''Yes''' |
|||
# Proceed? '''Yes''' |
|||
# You will get a message at the end that Mondo Rescue couldn't create a boot image, ignore thi |
|||
=== |
=== Restore the XS System Files === |
||
# Insert the MondoArchive DVD |
|||
# Change your boot options so you boot from the DVD drive |
|||
# At the boot: prompt, type '''nuke''' this will completely overwrite your install from the iso |
|||
# You should be dropped down to a shell prompt. Type '''reboot''' and you're done |
|||
=== Backing up the XS Data === |
=== Backing up the XS Data === |
||
It looks like Moodle stores backups under /var/lib/moodle |
|||
rsync? |
|||
=== Restoring the XS Data === |
=== Restoring the XS Data === |
Latest revision as of 05:45, 17 August 2011
This page deals with Disaster Recovery for the School Server (XS) and does not deal with backup and disaster recovery for the XO's. There are some ideas for these issues on the Nepal:Redundancy page.
Goals
- The base XS can be restored by non-technical user w/out using the command-line and in less than 5 steps.
- The data on the XS can be backed up without Internet access (May not be feasible)
- Solution does not use backup tapes, zip drives, or other media that are expensive or other unavailable in countries like Nepal
- Backup software must be open-source
The obvious solution is to use a program that backs up all the system files to a liveCD or LiveDVD and back up the data separately. It would be easiest to back up the data directories in /var, /home, and /var/library across the network using rsync. However, this necessitates a working WAN/Internet connection.
Possibilities
- Mondo Rescue
- LiveBackup
- System Rescue CD
- Rsync - for backing up data directories across the network. Are there any alternatives to rsync worth looking at?
Current Solution
The OLE Nepal team is focusing on Mondo Rescue and rsync for backing up the XS
Installing Mondo Rescue on XS-160
- Download the Fedora Core 7 RPM's for Mondo Rescue here: http://mondorescue.muskokamug.org/fedora/7/ . You need the RPM's for afio, buffer, mindi, mindi-busybox, and mondo
- afio-2.4.7-1.i386.rpm
- buffer-1.19-1.i386.rpm
- mindi-busybox-1.2.2-3.fc7.i386.rpm
- mindi-1.2.4-1.fc7.i386.rpm
- mondo-2.2.4-1.fc7.i386.rpm
- Install them using rpm, note you should put mindi-busybox before mindi
- rpm -ivh afio....rpm buffer...rpm mindi-busybox...rpm mindi...rpm mondo...rpm
- You're done!
Back up the XS Sytem Files
- Login as root
- Change the runlevel to 1 telinit 1 this is pretty crucial as it will shutdown mysql, apache, dhcpd, named, all the services that could change important during your backup
- Type bash# mondoarchive note: don't type sudo, mondoarchive doesn't like sudo
- Choose DVD if you are going to use DVD
- Select Maximum compression to ensure everything fits on your DVD
- Choose the DVD directory, /dev/scd0
- Backup Path /
- Exclude Paths, nothing for now, may want to exclude /library later as we will use this folder for storing user data
- Alert, Verify Backups? Choose Yes
- Alert - Is your kernel Sane? Choose Yes
- Proceed? Yes
- You will get a message at the end that Mondo Rescue couldn't create a boot image, ignore thi
Restore the XS System Files
- Insert the MondoArchive DVD
- Change your boot options so you boot from the DVD drive
- At the boot: prompt, type nuke this will completely overwrite your install from the iso
- You should be dropped down to a shell prompt. Type reboot and you're done
Backing up the XS Data
It looks like Moodle stores backups under /var/lib/moodle
rsync?