Trial1 Backup

From OLPC
Revision as of 01:56, 15 May 2007 by Wad (talk | contribs)
Jump to: navigation, search

Backup

The backup script is run automatically (every few minutes) on the XO laptop, placing the contents of the Journal directory on the School server.

It may be manually triggered (for example, right before an upgrade). This may be done by typing backup at a command line. Eventually, there might be a way to trigger this through sugar.

Restore

There are two cases why a backup might be restored. One is that a student accidentally deleted desired files from their laptop. Another is that a laptop has been replaced, and needs to be restored.

In the case of accidental deletion, simply type backup-restore from a command line.

The following is not needed for the week of 5/17 demo. Simply bond with the same nickname and use backup-restore.

In the case of laptop replacement, have the student go through the bonding (nickname and color) procedure with the new laptop. Then:

  1. Insert "teacher" USB key into laptop (optional)
  2. Obtain a console, by simultaneously pressing Ctl Alt and F2 (the world view key). Log in as root.
  3. Type identity-restore "nickname". If "teacher" USB key isn't present, a password prompt will be used.
  4. Return to the sugar console by simultaneously pressing Ctl Alt and F4 (the app view key).

Teacher USB keys contain a private key identifying an administrator of the school. The password requested if a USB key is not present is that of the "xoreg" user on the school server.


Installing the software

This step is only needed until backup and restore are added to the next stable build.

  1. Insert "teacher" USB key into laptop
  2. Obtain a console, by simultaneously pressing Ctl Alt and F2 (the world view key). Log in as root.
  3. Type mount /dev/sda1 /mnt to mount the USB key (only needed until automount supported).
  4. Run the install script by typing /mnt/install-backup