Browse Source

fixed mirror scripts for new server

master
root 3 months ago
parent
commit
afc3449db8
7 changed files with 14 additions and 14 deletions
  1. +2
    -2
      alpine.sh
  2. +3
    -3
      arch.sh
  3. +1
    -1
      artix.sh
  4. +1
    -1
      blackarch.sh
  5. +1
    -1
      fdroid.sh
  6. +5
    -5
      mirror.sh
  7. +1
    -1
      openwrt.sh

+ 2
- 2
alpine.sh View File

@@ -7,10 +7,10 @@ if [ -z "$flock" ] ; then
fi

src=rsync://rsync.alpinelinux.org/alpine/
dest=/shared/hanez/alpine/
dest=/data/mirrors/alpine/

# uncomment this to exclude old v2.x branches
exclude="--exclude v2.* --exclude v3.0 --exclude v3.1 --exclude v3.2 --exclude v3.2 --exclude v3.3 --exclude v3.4 --exclude v3.5 --exclude v3.6 --exclude v3.7 --exclude v3.8 --exclude v3.9 --exclude aarch64/ --exclude armhf/ --exclude armv7/ --exclude ppc64le/ --exclude s390x/ --exclude x86/"
exclude="--exclude v2.* --exclude v3.0 --exclude v3.1 --exclude v3.2 --exclude v3.2 --exclude v3.3 --exclude v3.4 --exclude v3.5 --exclude v3.6 --exclude=v3.7 --exclude=v3.8 --exclude=v3.9 --exclude aarch64/ --exclude armhf/ --exclude armv7/ --exclude ppc64le/ --exclude s390x/ --exclude x86/"

mkdir -p "$dest"
/usr/bin/rsync \

+ 3
- 3
arch.sh View File

@@ -8,15 +8,15 @@
# lot of traffic.

# Directory where the repo is stored locally. Example: /srv/repo
target="/shared/hanez/arch"
target="/data/mirrors/arch"

# Directory where files are downloaded to before being moved in place.
# This should be on the same filesystem as $target, but not a subdirectory of $target.
# Example: /srv/tmp
tmp="/shared/hanez/tmp"
tmp="/data/tmp"

# Lockfile path
lock="/shared/hanez/tmp/syncrepo.lck"
lock="/data/tmp/syncrepo.lck"

# If you want to limit the bandwidth used by rsync set this.
# Use 0 to disable the limit.

+ 1
- 1
artix.sh View File

@@ -1,6 +1,6 @@
#!/bin/bash

rsync -auvPH --delete-after "rsync://mirrors.dotsrc.org/artix-linux/" /shared/hanez/artix/
rsync -auvPH --delete-after "rsync://mirrors.dotsrc.org/artix-linux/" /data/mirrors/artix/

#rsync -auvPH --delete-after "rsync://orion.artixlinux.org:64873/" /data/artix/repos/
#rsync -auvPH --delete-after "rsync://download.artixlinux.org/iso/" /data/artix/iso/

+ 1
- 1
blackarch.sh View File

@@ -1,4 +1,4 @@
#!/bin/sh

rsync -auvPH --delete-after "rsync://ftp.halifax.rwth-aachen.de/blackarch/" /shared/hanez/blackarch/
rsync -auvPH --delete-after "rsync://ftp.halifax.rwth-aachen.de/blackarch/" /data/mirrors/blackarch/


+ 1
- 1
fdroid.sh View File

@@ -1,4 +1,4 @@
#!/bin/sh

rsync -auvPH --delete-after "rsync://rsync.cyberbits.eu/fdroid/" /shared/hanez/fdroid/fdroid/
rsync -auvPH --delete-after "rsync://rsync.cyberbits.eu/fdroid/" /data/mirrors/fdroid/fdroid/


+ 5
- 5
mirror.sh View File

@@ -7,27 +7,27 @@ echo "############################"

echo "syncing alpine mirror!"
date
/shared/hanez/bin/alpine.sh > /shared/hanez/log/alpine.log
/data/bin/alpine.sh > /data/log/alpine.log
echo "############################"

echo "syncing arch mirror!"
date
/shared/hanez/bin/arch.sh > /shared/hanez/log/arch.log
/data/bin/arch.sh > /data/log/arch.log
echo "############################"

echo "syncing artix mirror!"
date
/shared/hanez/bin/artix.sh > /shared/hanez/log/artix.log
/data/bin/artix.sh > /data/log/artix.log
echo "############################"

echo "syncing blackarch mirror!"
date
/shared/hanez/bin/blackarch.sh > /shared/hanez/log/blackarch.log
/data/bin/blackarch.sh > /data/log/blackarch.log
echo "############################"

echo "syncing fdroid mirror!"
date
/shared/hanez/bin/fdroid.sh > /shared/hanez/log/fdroid.log
/data/bin/fdroid.sh > /data/log/fdroid.log
echo "############################"

echo "syncing mirrors finished"

+ 1
- 1
openwrt.sh View File

@@ -1,4 +1,4 @@
#!/bin/sh

rsync -auvPH --delete-after "rsync://downloads.openwrt.org/downloads" /data/openwrt/
#rsync -auvPH --delete-after "rsync://downloads.openwrt.org/downloads" /shared/hanez/openwrt/


Loading…
Cancel
Save