Skip over statistics

This commit is contained in:
Micke Nordin 2023-02-23 16:07:01 +01:00
parent 746859e70f
commit d378b5f2da
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -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"