-
Notifications
You must be signed in to change notification settings - Fork 2
/
rpmfusion_sync
executable file
·20 lines (18 loc) · 1.03 KB
/
rpmfusion_sync
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
#
# rpmfusion_sync
#
if [ x${HOSTNAME} != "xbodhi-backend01.online.rpmfusion.net" ] ; then
echo "Wrong host: run on bodhi-backend01" && exit 1
fi
umask 002
for i in free nonfree ; do
sg sysadmin-build "rsync -avHO --no-p --delete /mnt/koji/mash/${i}/rawhide/* /pub/${i}/fedora/development/rawhide/Everything | grep -v -e repodata -e repoview"
#j=42
#sg sysadmin-build "rsync -avHO --no-p --delete /mnt/koji/mash/${i}/${j}-branch/* /pub/${i}/fedora/development/${j}/Everything | grep -v -e repodata -e repoview"
#sg sysadmin-build "rsync -avHO --no-p /mnt/koji/mash/${i}/${j}-updates-testing/* /pub/${i}/fedora/updates/testing/${j}/ --delete | grep -v -e repodata -e repoview"
for j in 40 41; do
sg sysadmin-build "rsync -avHO --no-p /mnt/koji/mash/${i}/${j}-updates-testing/* /pub/${i}/fedora/updates/testing/${j}/ --delete | grep -v -e repodata -e repoview"
sg sysadmin-build "rsync -avHO --no-p /mnt/koji/mash/${i}/${j}-updates/* /pub/${i}/fedora/updates/${j}/ --delete | grep -v -e repodata -e repoview"
done
done