Linux.MirrorFtp History
Hide minor edits - Show changes to markup
March 22, 2006, at 11:34 AM
by 85.105.103.84
Added lines 1-27:
=== FTP Mirror ===
(:code:)
#!/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ını engeller.
wget -m -nH ftp://$FTP_USER:$FTP_PASS@$HOST/