[prev in list] [next in list] [prev in thread] [next in thread]
List: zaurus-general
Subject: Re: [Zaurus-general] Zaurus backup / restore withoat Cf or SD flash
From: Robert Towster <robert () towster ! com>
Date: 2002-09-18 7:34:23
[Download RAW message or body]
How about this.. It is what I use.. YMMV..
It requires you run ssh on your Z..
------------------------------------------------------------
#!/bin/sh
ZHOST=zaurus
# this is where the backups will be saved.
BACKUPDIR="/home/zaurus/backups"
BACKUPFILE=$BACKUPDIR/`date +%Y-%m-%d-%H-%M`.backup
LOG=$BACKUPDIR/`date +%Y-%m-%d-%H-%M`.backup.log
LASTLOG=`ls -tr $BACKUPDIR/*.log | tail -1`
KEEP=14
ssh -l root $ZHOST 'cd /;tar cf - --exclude home/tmp home usr/mnt.rom/card' > $BACKUPFILE
if [ -s $BACKUPFILE ]; then
tar -tvf $BACKUPFILE > $LOG
# diff $LASTLOG $LOG
## remove old backups
COUNT=`ls -tr $BACKUPDIR/*.backup | wc -l`
TOP=`echo $COUNT - $KEEP | bc`
for FILE in `ls -tr $BACKUPDIR/*.backup | head -$TOP` ; do
rm $FILE
done
COUNT=`ls -tr $BACKUPDIR/*.log | wc -l`
TOP=`echo $COUNT - $KEEP | bc`
for FILE in `ls -tr $BACKUPDIR/*.log | head -$TOP` ; do
rm $FILE
done
else
# bad backup.. trash it
rm $BACKUPFILE
fi
blachner@gmx.de wrote:
> Hello,
>
> I want backup my Zaurus without ad Cf or SD flash ram card. The best way
> would be a backup directly over the net (wireless lan) on the PC.
>
> I tried the following way:
> - Mount a NFS directory to Cf.
> - Backup with the restore/backup program on the Zaurus to cf.
>
> Unfortunaly that didn't work. The backup program only prints that it can't
> check the available space on the device. Maybe someone has a idea hao I can
> backup directly over thge net. Is there a better backup program for the Zaurus?
>
-------------------------------------------------------
This SF.NET email is sponsored by: AMD - Your access to the experts
on Hammer Technology! Open Source & Linux Developers, register now
for the AMD Developer Symposium. Code: EX8664
http://www.developwithamd.com/developerlab
_______________________________________________
Zaurus-general mailing list
Zaurus-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zaurus-general
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic