new archlinux.sh and less verbose logs
This commit is contained in:
1 parent
19678819d2
commit
0b797312a5
4 files changed
+60
-18
No files matched your search
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#/bin/bash
|
||||
|
||||
fatal() {
|
||||
echo "$1"
|
||||
exit 1
|
||||
}
|
||||
|
||||
#RSYNCSOURCE=rsync://ftp5.gwdg.de/pub/linux/archlinux/
|
||||
#RSYNCSOURCE=rsync://mirror.nl.leaseweb.net/archlinux/
|
||||
#RSYNCSOURCE=rsync://mirror.one.com/archlinux/
|
||||
#RSYNCSOURCE=rsync://mirror.neuf.no/archlinux/
|
||||
#RSYNCSOURCE=rsync://mirror.f4st.host/archlinux/
|
||||
#RSYNCSOURCE=rsync://ftp.nluug.nl/archlinux/
|
||||
RSYNCSOURCE=rsync://fooo.biz/archlinux/
|
||||
|
||||
# Define where you want the mirror-data to be on your mirror
|
||||
BASEDIR=/store/mirror/archlinux
|
||||
|
||||
rsync --verbose --recursive --times --links --hard-links \
|
||||
--stats --delete-after --ignore-errors \
|
||||
${RSYNCSOURCE} ${BASEDIR} &>> /opt/scripts/archlinux.log || fatal "Failed to rsync from ${RSYNCSOURCE}."
|
||||
|
||||
date &>> /opt/scripts/archlinux.log
|
||||
echo "############################" &>> /opt/scripts/archlinux.log
|
||||
|
||||
Reference in new issue
Block a user