make the volume scripts ignore ephemeral volumes

This commit is contained in:
goldsquid
2026-06-06 09:57:48 +07:00
parent d369f62c44
commit 91ef991773
10 changed files with 61 additions and 14 deletions

View File

@@ -1,6 +1,7 @@
#!/bin/bash
BASEPATH="$(dirname "$0")"
source "$BASEPATH/volume-utils.sh"
backup_dir="/backup"
if [[ -n $2 ]]; then
@@ -43,7 +44,7 @@ generate_volume_metadata() {
}
# Read the JSON input and extract the list of keys
keys=$(cat /root/rpc/$1.yml | yaml2json - | jq '.volumes' | jq -r 'keys[]')
keys=$(get_persistent_volume_keys "/root/rpc/$1.yml")
# Iterate over the list of keys
for key in $keys; do