make the volume scripts ignore ephemeral volumes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user