Created
April 11, 2021 04:41
-
-
Save ryanmaclean/c7596931ca49e798d8348423fb9d7a12 to your computer and use it in GitHub Desktop.
Download All Turnkey Containers for Proxmox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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