User:Ixo/Script/get-xo

From OLPC
< User:Ixo‎ | Script
Revision as of 01:16, 10 February 2008 by Ixo (talk | contribs) (started new page for get-ixo script.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

get-ixo

Summary

  • get-ixo: Get a local copy/backup of your XO Laptop /home directory.


Description

  • From server (or any other computer), backup and copy files from XO Laptop.
  • Script can ran multiple times, will only copy over files which have changed.

Benefits

  • Creates a backup of /home/olpc in case of errors or mistaken deletions.
  • Allows examination of files on different machine, with better local tools and resources.
  • run between operations on the XO, to see files created or updated.
#!/usr/bin/bash
#### FILE: get-ixo ########
# 2008 01 12, Iain D, ixo AT myna DOT ws
## RELEASED under CC-BY-SA-NC 3.0 license.
 
rsync --verbose --progress --times --perms --recursive --compress --links --rsh="ssh" \
   olpc@192.168.0.12:/home /home/Downloads/OLPC-BACKUP

NOTES:

  • Command is one single line.
  • Must setup password for olpc account, via 'root' command of $ sudo passwd olpc .
  • 192.168.0.12 is the IP address of the OLPC XO Laptop.
  • /home/Downloads/OLPC-BACKUP is local directory for the backup