mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
add server sync.sh
This commit is contained in:
parent
d8149af962
commit
a77c9ffb84
1 changed files with 10 additions and 7 deletions
|
@ -1,10 +1,13 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# created by Tobias Powalowski <tpowa@archlinux.org>
|
||||
if [[ -e ~/.rsync-running ]]; then
|
||||
echo "ERROR: rsync is already running!"
|
||||
exit 1
|
||||
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
|
||||
: > .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
|
||||
# vim: set ft=sh ts=4 sw=4 et:
|
||||
|
|
Loading…
Reference in a new issue