Remember to commit the script
All checks were successful
/ fatssh (push) Successful in 2m12s
/ rclone-faircamp (push) Successful in 2m30s
/ macless-haystack-web (push) Successful in 33s

This commit is contained in:
Martyn 2025-09-23 15:26:51 +02:00
parent 8ca8a17b89
commit 151bd7036e

View file

@ -0,0 +1,13 @@
#!/bin/bash
for bucket in ${FAIRCAMP_SITES}; do
if rclone check ${bucket}:${bucket} /rclone-output/${bucket}; then
echo "Bucket ${bucket} contains no updates"
else
pushd /rclone-output/${bucket}
rclone sync ${bucket}:${bucket} /rclone-output/${bucket}
faircamp
rclone sync /rclone-output/${bucket} ${bucket}:${bucket}
popd
fi;
done