Script for copying NodeManager and system logs into a slice
Andy Bavier [Tue, 11 Jan 2011 17:27:14 +0000 (12:27 -0500)]
exec/rsyncnodelogs [new file with mode: 0755]

diff --git a/exec/rsyncnodelogs b/exec/rsyncnodelogs
new file mode 100755 (executable)
index 0000000..4f85a98
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+DEST="/vservers/$1/home/$1"
+
+if [ -e /var/log/nm ]; then
+       /usr/bin/rsync -a /var/log/nm* $DEST/nm
+fi
+
+if [ -e /var/log/nodemanager ]; then
+       /usr/bin/rsync -a /var/log/nodemanager* $DEST/nodemanager
+fi
+
+if [ -e /var/log/messages ]; then
+       /usr/bin/rsync -a /var/log/messages* $DEST/messages
+fi