summaryrefslogtreecommitdiffstats
path: root/backup
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-11-09 03:12:37 +0100
committerSven Gothel <[email protected]>2010-11-09 03:12:37 +0100
commit328d022b474aea3786de67cccb09a6f392834486 (patch)
tree9493ac16fba7a3166143342b672a66778da2081a /backup
parentb3e89bfa55389cae974c94afba6fb4ce118f75df (diff)
Add backup script and git stuff
Diffstat (limited to 'backup')
-rwxr-xr-xbackup/rsync-jogamp2here.sh44
1 files changed, 44 insertions, 0 deletions
diff --git a/backup/rsync-jogamp2here.sh b/backup/rsync-jogamp2here.sh
new file mode 100755
index 0000000..3b98b15
--- /dev/null
+++ b/backup/rsync-jogamp2here.sh
@@ -0,0 +1,44 @@
+#! /bin/sh
+
+USESSH="-e ssh"
+
+DEST1=/
+DEST2=/data/backup/jogamp.org/fs
+
+function my_rsync()
+{
+ src=$1
+ shift
+ dst=$1
+ shift
+
+ mkdir -p $dst
+ rsync $USESSH -apv --delete-after $* $SOURCE/$src $dst
+}
+
+function do_rsync()
+{
+ my_rsync opt-share $DEST1/
+ my_rsync opt-linux-x86 $DEST1/
+ my_rsync opt-linux-x86_64 $DEST1/
+
+ my_rsync srv/glassfish $DEST1/srv/
+ my_rsync srv/hudson $DEST1/srv/
+ my_rsync srv/www/jogamp.org $DEST1/srv/www/
+
+ my_rsync srv/scm $DEST2/srv/
+
+ my_rsync home $DEST2/
+ my_rsync root $DEST2/
+
+ my_rsync etc $DEST2/ --exclude='selinux/' --exclude='gconf/' --exclude='firmware/'
+
+ my_rsync var/lib/mysql $DEST2/var/lib/
+ my_rsync var/spool/mail $DEST2/var/spool/
+ my_rsync var/log $DEST2/var/
+}
+
+do_rsync >& rsync-jogamp2here.log &
+disown $!
+