added rsync sample script
authorrk <rk>
Thu, 27 Sep 2001 19:55:51 +0000 (19:55 +0000)
committerrk <rk>
Thu, 27 Sep 2001 19:55:51 +0000 (19:55 +0000)
scripts/rsync.sample [new file with mode: 0755]

diff --git a/scripts/rsync.sample b/scripts/rsync.sample
new file mode 100755 (executable)
index 0000000..f0466e3
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+LOCKFILE=/tmp/rsynclock
+
+lockfile -r 1 $LOCKFILE || exit 23
+
+/usr/bin/rsync -e 'ssh -p 1113' --timeout=60 --exclude=news.de.html  -Crlptzv /var/www/sites/preview.indymedia.de/ germany@217.114.68.254:/www/germany/
+/usr/bin/rsync -e 'ssh -p 1113' --timeout=60 --exclude=news.de.html  -Crlptzv /var/www/copydir/ germany@217.114.68.254:/www/uploads/germany/
+/usr/bin/rsync -e 'ssh -p 1113' --timeout=60 --exclude=news.de.html  -Crlptzv /var/media/ germany@217.114.68.254:/www/uploads/germany/metafiles/
+       
+rm -f $LOCKFILE