diff --git a/bananian.sh b/bananian.sh new file mode 100755 index 0000000..e427264 --- /dev/null +++ b/bananian.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +function sync_bananian() { + repo_url="$1" + repo_dir="$2" + + [ ! -d "$repo_dir" ] && mkdir -p "$repo_dir" + cd $repo_dir + lftp "${repo_url}/" -e "mirror --verbose -P 5 --delete; bye" +} + +sync_bananian "https://dl.bananian.org" "${TUNASYNC_WORKING_DIR}" diff --git a/lxc-images.sh b/lxc-images.sh index 9440a8c..98711e5 100755 --- a/lxc-images.sh +++ b/lxc-images.sh @@ -7,10 +7,8 @@ function sync_lxc_images() { [ ! -d "$repo_dir" ] && mkdir -p "$repo_dir" cd $repo_dir - # lftp "${repo_url}/" -e "mirror --verbose --log=${TUNASYNC_LOG_FILE} --exclude-glob='*/SRPMS/*' -P 5 --delete --only-newer; bye" lftp "${repo_url}/" -e "mirror --verbose -P 5 --delete --only-newer; bye" } - sync_lxc_images "http://images.linuxcontainers.org/images" "${TUNASYNC_WORKING_DIR}/images" -sync_lxc_images "http://images.linuxcontainers.org/meta" "${TUNASYNC_WORKING_DIR}/meta" +sync_lxc_images "http://images.linuxcontainers.org/meta" "${TUNASYNC_WORKING_DIR}/meta" || true diff --git a/msys2.sh b/msys2.sh new file mode 100755 index 0000000..1b3f1d8 --- /dev/null +++ b/msys2.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +function sync_msys2() { + repo_url="$1" + repo_dir="$2" + + [ ! -d "$repo_dir" ] && mkdir -p "$repo_dir" + cd $repo_dir + lftp "${repo_url}/" -e "mirror --verbose -P 5 --delete; bye" +} + +sync_msys2 "http://repo.msys2.org/" "${TUNASYNC_WORKING_DIR}" diff --git a/nodesource.sh b/nodesource.sh index 8dda8e7..c2bbf53 100755 --- a/nodesource.sh +++ b/nodesource.sh @@ -6,7 +6,6 @@ function sync_nodesource() { [ ! -d "$repo_dir" ] && mkdir -p "$repo_dir" cd $repo_dir - # lftp "${repo_url}/" -e "mirror --verbose --exclude-glob='*/SRPMS/*' -P 5 --delete --only-newer; bye" lftp "${repo_url}/" -e "mirror --verbose -P 5 --delete --only-newer; bye" } diff --git a/openwrt.sh b/openwrt.sh index 372d696..6a9d7fc 100755 --- a/openwrt.sh +++ b/openwrt.sh @@ -6,8 +6,8 @@ function sync_openwrt() { [ ! -d "$repo_dir" ] && mkdir -p "$repo_dir" cd $repo_dir - lftp "${repo_url}/" -e "mirror --verbose -P 5 --delete --only-newer; bye" + lftp "${repo_url}/" -e "mirror --verbose -P 5 --delete --only-missing; bye" + lftp "${repo_url}/" -e "mirror --verbose -P 5 --only-newer --exclude-glob *.ipk; bye" } -sync_openwrt "http://downloads.openwrt.org/chaos_calmer/15.05/" "${TUNASYNC_WORKING_DIR}/chaos_calmer/15.05" -sync_openwrt "http://downloads.openwrt.org/snapshots/trunk/" "${TUNASYNC_WORKING_DIR}/snapshots/trunk" +sync_openwrt "http://downloads.openwrt.org/chaos_calmer/15.05.1" "${TUNASYNC_WORKING_DIR}/chaos_calmer/15.05.1" diff --git a/repo-ck.sh b/repo-ck.sh index 8e4538a..103fa4e 100755 --- a/repo-ck.sh +++ b/repo-ck.sh @@ -6,7 +6,7 @@ function sync_repo_ck() { [ ! -d "$repo_dir" ] && mkdir -p "$repo_dir" cd $repo_dir - lftp "${repo_url}/" -e 'mirror -v -P 5 --delete --only-missing --only-newer --no-recursion; bye' + lftp "${repo_url}/" -e 'mirror -v -P 5 --delete --no-recursion; bye' wget "${repo_url}/repo-ck.db" -O "repo-ck.db" wget "${repo_url}/repo-ck.files" -O "repo-ck.files" }