Remember to commit the script
This commit is contained in:
parent
8ca8a17b89
commit
151bd7036e
1 changed files with 13 additions and 0 deletions
13
faircampbuilder/script.bash
Normal file
13
faircampbuilder/script.bash
Normal 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
|
Loading…
Add table
Reference in a new issue