home *** CD-ROM | disk | FTP | other *** search
- From: Johan Vromans <jvromans@squirrel.nl>
- To: comp-binaries-psion@moderators.uu.net
- Newsgroups: comp.binaries.psion
- Subject: PsiBackup -- Perl program to Backup an NFS mounted Psion
- Followup-To: comp.sys.psion.apps
- Path: toga.it.dtu.dk!ej
- Message-ID: <ej860328111@it.dtu.dk>
- Date: Sun, 6 Apr 1997 12:01:51 GMT
- Approved: ej@it.dtu.dk
- Lines: 351
-
- [ Moderators note: I have allowed this binary to come through in ]
- [ share format, as it may be easier for some to extract on unix. ]
- [ At the same time I have created an equivalent zip file that's ]
- [ available from ftp://ftp.it.dtu.dk/pub/psion/1997/982.zip ]
-
-
- PsiBackup backs up a Psion Series 3a organizer, mounted to a Unix
- system using NFS. The conventions used in file names are identical to
- the conventions of Psion's PsiWin and RCOM programs.
- PsiBackup requires Perl 5.003 or later.
-
- A shell script (included) can be used for configuration and
- maintenance purposes. It can use John Boyce's JBStopGo program to stop
- and re-start active tasks on the Psion.
-
- Links and references:
-
- p3nfs: Rudolf Koenig (rfkoenig@immd4.informatik.uni-erlangen.de)
- JBSoft: http://www.compulink.co.uk/~jbsoft/programs.htm
-
- Johan Vromans jvromans@squirrel.nl
- Squirrel Design & Consultancy Boskoop, the Netherlands
- http://www.squirrel.nl http://www.squirrel.nl/people/jvromans
- PGP key fingerprint = 7C F8 BD 5C 25 7F 47 A6 CB 87 32 0B E3 50 EF 04
- ------------------------ "Arms are made for hugging" -------------------------
-
- #!/bin/sh
- # This is a shell archive (produced by GNU sharutils 4.2).
- # To extract the files from this archive, save it to some FILE, remove
- # everything before the `!/bin/sh' line above, then type `sh FILE'.
- #
- # Made on 1997-04-05 18:45 MET DST by <jv@phoenix.squirrel.nl>.
- # Source directory was `/home/jv/psion/dumps'.
- #
- # Existing files will *not* be overwritten unless `-c' is specified.
- #
- # This shar contains:
- # length mode name
- # ------ ---------- ------------------------------------------
- # 548 -rw-r--r-- README
- # 11358 -r--r--r-- PsiBackup.pl
- # 1954 -r-xr-xr-x PsiBackup.sh
- # 2110 -rw-r--r-- PsiBackup.txt
- #
- save_IFS="${IFS}"
- IFS="${IFS}:"
- gettext_dir=FAILED
- locale_dir=FAILED
- first_param="$1"
- for dir in $PATH
- do
- if test "$gettext_dir" = FAILED && test -f $dir/gettext \
- && ($dir/gettext --version >/dev/null 2>&1)
- then
- set `$dir/gettext --version 2>&1`
- if test "$3" = GNU
- then
- gettext_dir=$dir
- fi
- fi
- if test "$locale_dir" = FAILED && test -f $dir/shar \
- && ($dir/shar --print-text-domain-dir >/dev/null 2>&1)
- then
- locale_dir=`$dir/shar --print-text-domain-dir`
- fi
- done
- IFS="$save_IFS"
- if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED
- then
- echo=echo
- else
- TEXTDOMAINDIR=$locale_dir
- export TEXTDOMAINDIR
- TEXTDOMAIN=sharutils
- export TEXTDOMAIN
- echo="$gettext_dir/gettext -s"
- fi
- touch -am 1231235999 $$.touch >/dev/null 2>&1
- if test ! -f 1231235999 && test -f $$.touch; then
- shar_touch=touch
- else
- shar_touch=:
- echo
- $echo 'WARNING: not restoring timestamps. Consider getting and'
- $echo "installing GNU \`touch', distributed in GNU File Utilities..."
- echo
- fi
- rm -f 1231235999 $$.touch
- #
- if mkdir _sh04170; then
- $echo 'x -' 'creating lock directory'
- else
- $echo 'failed to create lock directory'
- exit 1
- fi
- # ============= README ==============
- if test -f 'README' && test "$first_param" != -c; then
- $echo 'x -' SKIPPING 'README' '(file already exists)'
- else
- $echo 'x -' extracting 'README' '(gzipped)'
- sed 's/^X//' << 'SHAR_EOF' | uudecode &&
- begin 600 _sh04170/gzi
- 6Q]6?'P<US>KIQU/+[B]O8!^=)`(``+5;
- `
- end
- SHAR_EOF
- $echo 'gunzipping file' 'README' &&
- gzip -d < _sh04170/gzi > 'README' &&
- $shar_touch -am 0405184597 'README' &&
- chmod 0644 'README' ||
- $echo 'restore of' 'README' 'failed'
- if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
- && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
- md5sum -c << SHAR_EOF >/dev/null 2>&1 \
- || $echo 'README:' 'MD5 check failed'
- 9b0e42d5d36e14a1e3b290207350f9e2 README
- SHAR_EOF
- else
- shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'README'`"
- test 548 -eq "$shar_count" ||
- $echo 'README:' 'original size' '548,' 'current size' "$shar_count!"
- fi
- fi
- # ============= PsiBackup.pl ==============
- if test -f 'PsiBackup.pl' && test "$first_param" != -c; then
- $echo 'x -' SKIPPING 'PsiBackup.pl' '(file already exists)'
- else
- $echo 'x -' extracting 'PsiBackup.pl' '(gzipped)'
- sed 's/^X//' << 'SHAR_EOF' | uudecode &&
- begin 600 _sh04170/gzi
- F6J7RQ#=`3A$R!9)CE"$"FO>9>$^E&"]>$.P_./\#+1M%QUXL``#*
- `
- end
- SHAR_EOF
- $echo 'gunzipping file' 'PsiBackup.pl' &&
- gzip -d < _sh04170/gzi > 'PsiBackup.pl' &&
- $shar_touch -am 0405184097 'PsiBackup.pl' &&
- chmod 0444 'PsiBackup.pl' ||
- $echo 'restore of' 'PsiBackup.pl' 'failed'
- if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
- && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
- md5sum -c << SHAR_EOF >/dev/null 2>&1 \
- || $echo 'PsiBackup.pl:' 'MD5 check failed'
- 40bb938bd12baff58d1f3bbe441c083a PsiBackup.pl
- SHAR_EOF
- else
- shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'PsiBackup.pl'`"
- test 11358 -eq "$shar_count" ||
- $echo 'PsiBackup.pl:' 'original size' '11358,' 'current size' "$shar_count!"
- fi
- fi
- # ============= PsiBackup.sh ==============
- if test -f 'PsiBackup.sh' && test "$first_param" != -c; then
- $echo 'x -' SKIPPING 'PsiBackup.sh' '(file already exists)'
- else
- $echo 'x -' extracting 'PsiBackup.sh' '(gzipped)'
- sed 's/^X//' << 'SHAR_EOF' | uudecode &&
- begin 600 _sh04170/gzi
- `
- end
- SHAR_EOF
- $echo 'gunzipping file' 'PsiBackup.sh' &&
- gzip -d < _sh04170/gzi > 'PsiBackup.sh' &&
- $shar_touch -am 0405183997 'PsiBackup.sh' &&
- chmod 0555 'PsiBackup.sh' ||
- $echo 'restore of' 'PsiBackup.sh' 'failed'
- if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
- && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
- md5sum -c << SHAR_EOF >/dev/null 2>&1 \
- || $echo 'PsiBackup.sh:' 'MD5 check failed'
- 16459fc0ddb3e82a6f5addffa07507c1 PsiBackup.sh
- SHAR_EOF
- else
- shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'PsiBackup.sh'`"
- test 1954 -eq "$shar_count" ||
- $echo 'PsiBackup.sh:' 'original size' '1954,' 'current size' "$shar_count!"
- fi
- fi
- # ============= PsiBackup.txt ==============
- if test -f 'PsiBackup.txt' && test "$first_param" != -c; then
- $echo 'x -' SKIPPING 'PsiBackup.txt' '(file already exists)'
- else
- $echo 'x -' extracting 'PsiBackup.txt' '(gzipped)'
- sed 's/^X//' << 'SHAR_EOF' | uudecode &&
- begin 600 _sh04170/gzi
- =4937J.=Y,@P=`8/Q=IHEZE]-R/)?QEW/TCX(``!Y
- `
- end
- SHAR_EOF
- $echo 'gunzipping file' 'PsiBackup.txt' &&
- gzip -d < _sh04170/gzi > 'PsiBackup.txt' &&
- $shar_touch -am 0405183097 'PsiBackup.txt' &&
- chmod 0644 'PsiBackup.txt' ||
- $echo 'restore of' 'PsiBackup.txt' 'failed'
- if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
- && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
- md5sum -c << SHAR_EOF >/dev/null 2>&1 \
- || $echo 'PsiBackup.txt:' 'MD5 check failed'
- e1cf0edb224fc4a5ee99110dc458baa8 PsiBackup.txt
- SHAR_EOF
- else
- shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'PsiBackup.txt'`"
- test 2110 -eq "$shar_count" ||
- $echo 'PsiBackup.txt:' 'original size' '2110,' 'current size' "$shar_count!"
- fi
- fi
- rm -fr _sh04170
- exit 0
- ---
- Please mail binaries to 'psion-binaries@it.dtu.dk' to put them in this group.
- This Psion binary was approved by Erik Johansen <ej@it.dtu.dk>
- Also check out: ftp://ftp.it.dtu.dk/pub/psion/index.html
-
-