Why this script does not work as expected ?
Pierre-Francois LAURAND
lists at lrnx.ath.cx
Sat Feb 17 18:56:23 UTC 2007
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 at 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
More information about the freebsd-questions
mailing list