diff --git a/usr/share/archboot/server/sync.sh b/usr/share/archboot/server/sync.sh new file mode 100755 index 000000000..f49aaeb6d --- /dev/null +++ b/usr/share/archboot/server/sync.sh @@ -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