Date: Sat, 17 Feb 2007 19:36:07 +0100 From: Pierre-Francois LAURAND <lists@lrnx.ath.cx> To: freebsd-questions@freebsd.org Subject: Why this script does not work as expected ? Message-ID: <45D74B17.7050305@lrnx.ath.cx>
next in thread | raw e-mail | index | archive | help
Hi,
I'm trying to send dump files between 2 FreeBSD hosts ( 6.1 to 6.2 )
with this script :
------------------------------------------------------------------------
#!/bin/sh
set -evx
#
# Launch nc in listen mode to recept datas on remote s-backup server.
#
/usr/bin/ssh -c blowfish backup@s-backup \
/usr/bin/nc -lv 24864 \>/backup/2007/02/s9_vol1_datas_20070216.dump &
if [ ${?} -gt 0 ]; then
exit 1
fi
#read _ignore
#
# Dumping and sending datas to s-backup
#
/usr/bin/time /usr/bin/nice -n 20 /sbin/dump -C 16 -0 -f- /vol1 | \
/usr/bin/nc -v s-backup 24864
------------------------------------------------------------------------
This dump should be ~20 Gb, but the the remote file is only filled with
the first 1024 bytes !
Am I doing something wrong or missing something here ?
Thanks for any help !
--
pf
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45D74B17.7050305>
