A couple of more colons

This commit is contained in:
Micke Nordin 2025-05-23 12:28:31 +02:00
parent dc4ed866f3
commit 1987ebb052

View file

@ -30,7 +30,7 @@ totalFiles=0
for remote in ${remotes}; do
project=${remote}
buckets=$(rclone --config /root/.rclone.conf lsjson "${project}" | jq -r '.[].Name' | grep -E -v '^statistics')
buckets=$(rclone --config /root/.rclone.conf lsjson "${project}:" | jq -r '.[].Name' | grep -E -v '^statistics')
for bucket in ${buckets}; do
echo "${bucket}" | grep -E "${customer}|db-backups$" &>/dev/null
@ -51,7 +51,7 @@ for remote in ${remotes}; do
MB=$((KB / 1024))
((totalMB += MB))
GB=$((MB / 1024))
result1="${result1}${project}${bucket};${numfiles};${MB};${GB}"$'\n'
result1="${result1}${project}:${bucket};${numfiles};${MB};${GB}"$'\n'
#printf '%s:%s \t Files: %s \t S3: %s MB \t %s GB\n' "${project}" "${bucket}" "${numfiles}" "${MB}" "${GB}"| expand -t 45
done
done