add server sync.sh

This commit is contained in:
Tobias Powalowski 2023-09-09 09:46:33 +02:00
parent 468d35c120
commit d8149af962

View file

@ -0,0 +1,10 @@
#!/bin/bash
if [[ -e ~/.rsync-running ]]; then
echo "ERROR: rsync is already running!"
exit 1
else
: > .rsync-running
echo "Syncing files to U.S. mirror: archboot.org..."
rsync -a -q --delete --delete-delay pkg src iso archboot.org:public_html
rm .rsync-running
fi