summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorKurt Lieber <klieber@gentoo.org>2003-09-30 23:06:18 +0000
committerKurt Lieber <klieber@gentoo.org>2003-09-30 23:06:18 +0000
commit520a669c4ac975c3792c8ef1c1d6225a5fd2b918 (patch)
treea61170ae355e9014e6ae61579fd5af03db6ea76e /admin
parentmoved to cronolog for logging (diff)
downloadgentoo-520a669c4ac975c3792c8ef1c1d6225a5fd2b918.tar.gz
gentoo-520a669c4ac975c3792c8ef1c1d6225a5fd2b918.tar.bz2
gentoo-520a669c4ac975c3792c8ef1c1d6225a5fd2b918.zip
initial version of script
Diffstat (limited to 'admin')
-rw-r--r--admin/www.gentoo.org/scripts/rsync-weblogs.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/admin/www.gentoo.org/scripts/rsync-weblogs.sh b/admin/www.gentoo.org/scripts/rsync-weblogs.sh
new file mode 100644
index 0000000000..5823ea11d8
--- /dev/null
+++ b/admin/www.gentoo.org/scripts/rsync-weblogs.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+#
+# rsync weblogs to the central server
+#
+# Kurt Lieber
+# klieber@gentoo.org
+#
+# v0.1
+#
+#######################################
+
+RSYNC="/usr/bin/rsync"
+LOCALDIR="/var/log/apache/*"
+RSYNCSERVER="monitor.gentoo.org::web-logs"
+REMOTEDIR="/$HOSTNAME/"
+RSYNCOPTIONS=""
+
+${RSYNC} ${RSYNCOPTIONS} ${LOCALDIR} ${RSYNCSERVER}${REMOTEDIR}
+