mirror of
https://github.com/tuna/tunasync.git
synced 2025-04-21 04:42:46 +00:00
14 lines
392 B
Bash
Executable File
14 lines
392 B
Bash
Executable File
#!/bin/bash
|
|
|
|
function sync_lxc_images() {
|
|
repo_url="$1"
|
|
repo_dir="$2"
|
|
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 --exclude lxd/ -P 5 --delete --only-newer; bye"
|
|
}
|
|
|
|
|
|
sync_lxc_images "http://images.linuxcontainers.org/" "${TUNASYNC_WORKING_DIR}/"
|