lxc-images.sh 392 B

12345678910111213
  1. #!/bin/bash
  2. function sync_lxc_images() {
  3. repo_url="$1"
  4. repo_dir="$2"
  5. cd $repo_dir
  6. # lftp "${repo_url}/" -e "mirror --verbose --log=${TUNASYNC_LOG_FILE} --exclude-glob='*/SRPMS/*' -P 5 --delete --only-newer; bye"
  7. lftp "${repo_url}/" -e "mirror --verbose --exclude lxd/ -P 5 --delete --only-newer; bye"
  8. }
  9. sync_lxc_images "http://images.linuxcontainers.org/" "${TUNASYNC_WORKING_DIR}/"