mirror of
https://github.com/tuna/tunasync.git
synced 2025-04-20 20:22:46 +00:00
update lxc syncing script
This commit is contained in:
parent
cba5e6d499
commit
7da4dfc78e
@ -3,11 +3,14 @@
|
|||||||
function sync_lxc_images() {
|
function sync_lxc_images() {
|
||||||
repo_url="$1"
|
repo_url="$1"
|
||||||
repo_dir="$2"
|
repo_dir="$2"
|
||||||
|
|
||||||
|
[ ! -d "$repo_dir" ] && mkdir -p "$repo_dir"
|
||||||
cd $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 --log=${TUNASYNC_LOG_FILE} --exclude-glob='*/SRPMS/*' -P 5 --delete --only-newer; bye"
|
||||||
lftp "${repo_url}/" -e "mirror --verbose --exclude lxd/ -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/" "${TUNASYNC_WORKING_DIR}/"
|
sync_lxc_images "http://images.linuxcontainers.org/images" "${TUNASYNC_WORKING_DIR}/images"
|
||||||
|
sync_lxc_images "http://images.linuxcontainers.org/meta" "${TUNASYNC_WORKING_DIR}/meta"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user