A couple of more colons
This commit is contained in:
parent
dc4ed866f3
commit
1987ebb052
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ totalFiles=0
|
||||||
|
|
||||||
for remote in ${remotes}; do
|
for remote in ${remotes}; do
|
||||||
project=${remote}
|
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
|
for bucket in ${buckets}; do
|
||||||
echo "${bucket}" | grep -E "${customer}|db-backups$" &>/dev/null
|
echo "${bucket}" | grep -E "${customer}|db-backups$" &>/dev/null
|
||||||
|
@ -51,7 +51,7 @@ for remote in ${remotes}; do
|
||||||
MB=$((KB / 1024))
|
MB=$((KB / 1024))
|
||||||
((totalMB += MB))
|
((totalMB += MB))
|
||||||
GB=$((MB / 1024))
|
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
|
#printf '%s:%s \t Files: %s \t S3: %s MB \t %s GB\n' "${project}" "${bucket}" "${numfiles}" "${MB}" "${GB}"| expand -t 45
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue