summaryrefslogtreecommitdiff
path: root/migrate-repo
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-11-14 05:18:51 -0800
committerParabola <dev@list.parabolagnulinux.org>2011-11-14 05:18:51 -0800
commit93255c0baf9beb4f86815a8ba45c7cfa07ccac22 (patch)
tree9d8c1195c5fbe5698a0f0314f5e52be0a894c174 /migrate-repo
parent4e81322477747ad61524f1d18fcba58965872542 (diff)
Local changes
Diffstat (limited to 'migrate-repo')
-rwxr-xr-xmigrate-repo29
1 files changed, 29 insertions, 0 deletions
diff --git a/migrate-repo b/migrate-repo
new file mode 100755
index 0000000..2e44adb
--- /dev/null
+++ b/migrate-repo
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+source $(dirname $0)/config
+
+#dryrun="--dry-run"
+
+# Sync our repos
+#for parabola_repo in ${OURREPOS[@]} ${USERREPOS[@]} ${PROJREPOS[@]}; do
+for parabola_repo in ${USERREPOS[@]} ${PROJREPOS[@]}; do
+ echo ":: Syncing ${parabola_repo}/ => ${FTP_BASE}/${parabola_repo}/"
+ rsync -avL ${dryrun} --progress -e ssh parabolavnx@69.163.153.218:repo/${parabola_repo}/ ${FTP_BASE}/${parabola_repo}/
+done
+
+# Sync our arches
+#for parabola_arch in ${OURARCHES[@]}; do
+#for arch_repo in ${ARCHREPOS[@]}; do
+ #echo ":: Syncing ${arch_repo}/os/${parabola_arch}/ => ${FTP_BASE}/${arch_repo}/os/${parabola_arch}/"
+# rsync -avL ${dryrun} --progress -e ssh parabolavnx@69.163.153.218:repo/${arch_repo}/os/${parabola_arch}/ ${FTP_BASE}/${arch_repo}/os/${parabola_arch}/
+#done
+#done
+#
+# Sync other dirs last
+#for other in screenshots isos; do
+for other in other; do
+ echo ":: Syncing ${other}/ => ${FTP_BASE}/${other}/"
+ rsync -avL ${dryrun} --progress -e ssh parabolavnx@69.163.153.218:repo/${other}/ ${FTP_BASE}/${other}
+done
+
+exit $?