Skip to content

Instantly share code, notes, and snippets.

@robin-collins
Last active December 1, 2022 23:46
Show Gist options
  • Save robin-collins/53118defcfa795d3a60bf07a5327b946 to your computer and use it in GitHub Desktop.
Save robin-collins/53118defcfa795d3a60bf07a5327b946 to your computer and use it in GitHub Desktop.
Proxmox: Download all LXC templates to STORAGE
#!/bin/bash
STORAGE=hdd;available=$(pveam available | awk '{print $2}');array=(${available//$'\n'/ });for download in "${array[@]}"; do echo "Downloading ${download}"; timeout 180 pveam download "${STORAGE}" "${download}"; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment