Skip over statistics
This commit is contained in:
parent
746859e70f
commit
d378b5f2da
|
@ -3,7 +3,7 @@
|
||||||
project="${1}"
|
project="${1}"
|
||||||
bucket="${2}"
|
bucket="${2}"
|
||||||
data_dir='/opt/backups/data'
|
data_dir='/opt/backups/data'
|
||||||
for project in $(rclone listremotes | grep -v 'mirror'); do
|
for project in $(rclone listremotes | grep -v 'mirror' | grep -v 'statistics'); do
|
||||||
for bucket in $(rclone lsd "${project}" | awk '{print $NF}' | grep -E '\-mirror|db-backups'); do
|
for bucket in $(rclone lsd "${project}" | awk '{print $NF}' | grep -E '\-mirror|db-backups'); do
|
||||||
mkdir -p "${data_dir}/${project}"
|
mkdir -p "${data_dir}/${project}"
|
||||||
duplicity collection-status --log-file /dev/stdout --no-encryption "rclone://${project}${bucket}" | grep -E '^ inc|^ full' > "${data_dir}/${project}/${bucket}.dat"
|
duplicity collection-status --log-file /dev/stdout --no-encryption "rclone://${project}${bucket}" | grep -E '^ inc|^ full' > "${data_dir}/${project}/${bucket}.dat"
|
||||||
|
|
Loading…
Reference in a new issue