Trial1 Backup
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:
- 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.
- Type identity-restore "nickname". 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).
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.
- Insert "teacher" USB key into laptop
- Obtain a console, by simultaneously pressing Ctl Alt and F2 (the world view key). Log in as root.
- Type mount /dev/sda1 /mnt to mount the USB key (only needed until automount supported).
- Run the install script by typing /mnt/install-backup