From d14e01a3d20ac35dabaf61ea6ce0217c50f5ae7f Mon Sep 17 00:00:00 2001 From: Nicolas Boutet Date: Wed, 28 Jun 2023 15:21:11 +0200 Subject: [PATCH] Fix variable name --- defaults/main.yml | 2 +- templates/docker_mariabackup.sh.j2 | 2 +- templates/files.sh.j2 | 2 +- templates/influxdb.sh.j2 | 2 +- templates/mongodump.sh.j2 | 2 +- templates/mysqldump.sh.j2 | 2 +- templates/s3_bucket.sh.j2 | 2 +- templates/xtrabackup.sh.j2 | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 4c51e02..6733a90 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -45,7 +45,7 @@ backup_gcloud_command: gsutil backup_gcloud_upload_enabled: false backup_gcloud_bucket_name: mybucket -backup_b2_path: b2 +backup_b2_command: b2 backup_b2_upload_enabled: false backup_b2_bucket_name: mybucket diff --git a/templates/docker_mariabackup.sh.j2 b/templates/docker_mariabackup.sh.j2 index ffc4ac8..ede5124 100644 --- a/templates/docker_mariabackup.sh.j2 +++ b/templates/docker_mariabackup.sh.j2 @@ -115,7 +115,7 @@ upload() { {% if item.vars.b2_upload_enabled | d(backup_b2_upload_enabled) %} echo "Uploading to Backblaze B2..." - {{ backup_b2_path }} upload-file \ + {{ backup_b2_command }} upload-file \ --quiet \ --noProgress \ {{ backup_b2_bucket_name }} \ diff --git a/templates/files.sh.j2 b/templates/files.sh.j2 index 4d583c0..a47cb18 100644 --- a/templates/files.sh.j2 +++ b/templates/files.sh.j2 @@ -77,7 +77,7 @@ upload() { {% if item.vars.b2_upload_enabled | d(backup_b2_upload_enabled) %} echo "Uploading to Backblaze B2..." - {{ backup_b2_path }} upload-file \ + {{ backup_b2_command }} upload-file \ --quiet \ --noProgress \ {{ backup_b2_bucket_name }} \ diff --git a/templates/influxdb.sh.j2 b/templates/influxdb.sh.j2 index f92b47a..291aecf 100644 --- a/templates/influxdb.sh.j2 +++ b/templates/influxdb.sh.j2 @@ -88,7 +88,7 @@ upload() { {% if item.vars.b2_upload_enabled | d(backup_b2_upload_enabled) %} echo "Uploading to Backblaze B2..." - {{ backup_b2_path }} upload-file \ + {{ backup_b2_command }} upload-file \ --quiet \ --noProgress \ {{ backup_b2_bucket_name }} \ diff --git a/templates/mongodump.sh.j2 b/templates/mongodump.sh.j2 index 366bea1..c656076 100644 --- a/templates/mongodump.sh.j2 +++ b/templates/mongodump.sh.j2 @@ -90,7 +90,7 @@ upload() { {% if item.vars.b2_upload_enabled | d(backup_b2_upload_enabled) %} echo "Uploading to Backblaze B2..." - {{ backup_b2_path }} upload-file \ + {{ backup_b2_command }} upload-file \ --quiet \ --noProgress \ {{ backup_b2_bucket_name }} \ diff --git a/templates/mysqldump.sh.j2 b/templates/mysqldump.sh.j2 index fe6d83c..895c5fa 100644 --- a/templates/mysqldump.sh.j2 +++ b/templates/mysqldump.sh.j2 @@ -92,7 +92,7 @@ upload() { {% if item.vars.b2_upload_enabled | d(backup_b2_upload_enabled) %} echo "Uploading to Backblaze B2..." - {{ backup_b2_path }} upload-file \ + {{ backup_b2_command }} upload-file \ --quiet \ --noProgress \ {{ backup_b2_bucket_name }} \ diff --git a/templates/s3_bucket.sh.j2 b/templates/s3_bucket.sh.j2 index c6621b4..2357632 100644 --- a/templates/s3_bucket.sh.j2 +++ b/templates/s3_bucket.sh.j2 @@ -85,7 +85,7 @@ upload() { {% if item.vars.b2_upload_enabled | d(backup_b2_upload_enabled) %} echo "Uploading to Backblaze B2..." - {{ backup_b2_path }} upload-file \ + {{ backup_b2_command }} upload-file \ --quiet \ --noProgress \ {{ backup_b2_bucket_name }} \ diff --git a/templates/xtrabackup.sh.j2 b/templates/xtrabackup.sh.j2 index 217ac7f..47f0095 100644 --- a/templates/xtrabackup.sh.j2 +++ b/templates/xtrabackup.sh.j2 @@ -96,7 +96,7 @@ upload() { {% if item.vars.b2_upload_enabled | d(backup_b2_upload_enabled) %} echo "Uploading to Backblaze B2..." - {{ backup_b2_path }} upload-file \ + {{ backup_b2_command }} upload-file \ --quiet \ --noProgress \ {{ backup_b2_bucket_name }} \