Try to make rsync to really sync the whole folder.

This commit is contained in:
2024-01-26 07:00:13 +00:00
parent 1fe392fbe6
commit 85682d1cb5

View File

@@ -20,7 +20,7 @@ job "wordpress-backup" {
destination = "local/script.sh"
data = <<EOH
set -e
/run/current-system/sw/bin/rsync -a /data/sync/wordpress /data/compute/appdata/wordpress/ && \
/run/current-system/sw/bin/rsync -a /data/sync/wordpress/ /data/compute/appdata/wordpress/ && \
echo "last_success $(date +%s)" | \
/run/current-system/sw/bin/curl --data-binary @- http://pushgateway.service.consul:9091/metrics/job/wordpress_backup
EOH