Skip to content

Instantly share code, notes, and snippets.

@ryanmaclean
Created April 11, 2021 04:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ryanmaclean/c7596931ca49e798d8348423fb9d7a12 to your computer and use it in GitHub Desktop.
Save ryanmaclean/c7596931ca49e798d8348423fb9d7a12 to your computer and use it in GitHub Desktop.
Download All Turnkey Containers for Proxmox
#!/usr/bin/env bash
# Used for lab - download all the Turnkey containers locally
# If you want the system containers, system is the section you want!
STORAGE="local" # Find here: https://proxmox:8006/#v1:0:=type%2Fstorage:4:=jsconsole::::7:=consolejs:
SECTION="turnkeylinux" # Can also use "system"
# Find all containers for the section and download them to defined storage
# The awk statement here grabs the second column (container name) from the pveadm
# search results, as the first column contains the section.
for i in $(pveam available --section "${SECTION}" | awk '{print $2}'); do
pveam download "$STORAGE" "$i"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment