Trial1 Backup: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
m (minor changes)
Line 15: Line 15:
In the case of laptop replacement, have the student go through the bonding (nickname and color) procedure with the new laptop. Then:
In the case of laptop replacement, have the student go through the bonding (nickname and color) procedure with the new laptop. Then:


# Insert "teacher" USB key into laptop (optional)
# Insert ''teacher'' USB key into laptop (optional)
# Obtain a console, by simultaneously pressing Ctl Alt and F2 (the world view key). Log in as root.
# Obtain a console, by simultaneously pressing Ctl Alt and F2 (the world view key). Log in as root.
# Type <tt>identity-restore "nickname"</tt>. If "teacher" USB key isn't present, a password prompt will be used.
# Type <tt>identity-restore "nickname"</tt>. If ''teacher'' USB key isn't present, a password prompt will be used.
# Return to the sugar console by simultaneously pressing Ctl Alt and F4 (the app view key).
# 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.
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.




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


# Insert "teacher" USB key into laptop
# Insert ''teacher'' USB key into laptop
# Obtain a console, by simultaneously pressing Ctl Alt and F2 (the world view key). Log in as root.
# Obtain a console, by simultaneously pressing Ctl Alt and F2 (the world view key). Log in as root.
# Type <tt>mount /dev/sda1 /mnt</tt> to mount the USB key (only needed until automount supported).
# Type <tt>mount /dev/sda1 /mnt</tt> to mount the USB key (only needed until automount supported).

Revision as of 05:58, 15 May 2007

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