From Wiki

Linux: MirrorFtp

=== FTP Mirror ===

#!/bin/bash 

#
#FTP mirror script
#

# Paramatereler eksik ise cik.
if [ $# -ne 3 ]; then
	echo "Kullanimi: $0 <ftp_sunucu> <kullanici_adi> <sifre>"
	exit
fi

HOST="$1"
FTP_USER="$2"
FTP_PASS="$3"


# wget paramaterleri 
# -m: Mirror
# -nH: ftp.domain.com dizinin yaratmas&#305;n&#305; engeller.
wget -m -nH ftp://$FTP_USER:$FTP_PASS@$HOST/


Retrieved from http://kozgun.net/wiki/pmwiki.php?n=Linux.MirrorFtp
Page last modified on March 22, 2006, at 11:34 AM