Hi guys,

My name is Juliano Bittencourt and I work in one of the XO trials in Brazil. We have 100 laptops here in Porto Alegre being used by two 4th grades and two 6th grades. One of the main problems we have is related to keep the laptops SO updated since they already have user data. Jim Gettys was here during the FISL congress and suggested us to use rsync as a way to easily do the backup of the laptops into a server. We followed his tip and created two small shell scripts to do the backup/restore job as a temporary solution. We created a customized image of the system using the save-nand OFW command witch includes these scripts. We configured the backup script at runlevels 0 and 6, so each laptop keeps synced with the server. This is also helping us to see what kind of productions the kids are doing. Since we are conducting a formal research during the trials, being able to see what kind of documents kids are writing is very important. To create a directory in the server for each laptop we used the MAC address of eth0. If anyone has any suggestion to make our scripts work better, please fell free to send patches.

     Best,

      Juliano

Library
#!/bin/sh

export PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/sbin

# directory to backup
BDIR=/home/olpc/

# excludes file - this contains a wildcard pattern per line of files to exclude
EXCLUDES=/etc/backup_excludes

# the name of the backup machine
BSERVER=192.168.0.1

DIRNAME=`/sbin/ifconfig -a | grep 'HWaddr' | head -1 | awk '{ print $5 }'`;

# your password on the backup server
#export RSYNC_PASSWORD=vai_will


########################################################################

BACKUPDIR=$BDIR/backup/$DIRNAME

OPTS="--force --ignore-errors --exclude-from=$EXCLUDES 
      --delete -a"

# now the actual transfer
rsync $OPTS $BDIR $BSERVER::olpc/$DIRNAME

exit 0
#!/bin/sh

export PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/sbin

# directory to backup
BDIR=/home/olpc/

# excludes file - this contains a wildcard pattern per line of files to exclude
EXCLUDES=/etc/backup_excludes

# the name of the backup machine
BSERVER=192.168.0.1

DIRNAME=`/sbin/ifconfig -a | grep 'HWaddr' | head -1 | awk '{ print $5 }'`;

# your password on the backup server
#export RSYNC_PASSWORD=vai_will


########################################################################

BACKUPDIR=$BDIR/backup/$DIRNAME

OPTS="--force --ignore-errors --exclude-from=$EXCLUDES
      --delete -a"

# now the actual transfer
rsync $OPTS $BSERVER::olpc/$DIRNAME/ $BDIR
_______________________________________________
Devel mailing list
[email protected]
http://mailman.laptop.org/mailman/listinfo/devel

Reply via email to