How can I mirror drbl packages ? |
Since rsync serice is not available in free.nchc.org.tw, lftp is recommended. You can use the following script to mirror that. Remember to change the settings.
--------------------------------
#!/bin/sh
# Settings
URL="ftp://free.nchc.org.tw/drbl-core"
local_mirror_dir="/var/www/drbl-core"
[ ! -d $local_mirror_dir ] && mkdir -p $local_mirror_dir
# start mirror...
lftp -e "o $URL && lcd $local_mirror_dir/ && mirror -e --exclude old --exclude legacy --exclude RPMS.drbl-legacy --exclude SRPMS.drbl-legacy && quit"
--------------------------------
|
|