projects
/
scripts
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
de594e8
)
different backups for primary and secondary
master
origin
author
hackbard
<hackbard>
Wed, 25 Apr 2007 08:06:22 +0000
(08:06 +0000)
committer
hackbard
<hackbard>
Wed, 25 Apr 2007 08:06:22 +0000
(08:06 +0000)
README
patch
|
blob
|
history
backup_hackdaworld.sh
patch
|
blob
|
history
diff --git
a/README
b/README
index f930e5860665a92c3f41c6fa08909c678bfce611..6da006c924bd64c82538398fb8e2e33191558252 100644
(file)
--- a/
README
+++ b/
README
@@
-6,6
+6,9
@@
- backup.sh
simple script making backups of important files and data.
- backup.sh
simple script making backups of important files and data.
+- backup_hackdaworld.sh
+ simple rsync script to do backups of hackdaworld.org & co
+
- present_hdw_scripts.sh
small script to copy the hdw-linux scripts on my http server
- present_hdw_scripts.sh
small script to copy the hdw-linux scripts on my http server
diff --git
a/backup_hackdaworld.sh
b/backup_hackdaworld.sh
index 5545c2853cae1570ae1ddc24716a9bd6a33091e6..121fca39cec463cde58fd658d38fda731268e741 100755
(executable)
--- a/
backup_hackdaworld.sh
+++ b/
backup_hackdaworld.sh
@@
-1,6
+1,13
@@
REMOTE=sage.physik.uni-augsburg.de:/scratch/hackdaworld-${HOSTNAME}
REMOTE=sage.physik.uni-augsburg.de:/scratch/hackdaworld-${HOSTNAME}
-VARDIRS="/var/mail /var/spool /var/www /usr/lib/cgi-bin"
-ROOTDIRS="/etc /chroot /home /root"
+
+if [ "$HOSTNAME" = "primary" ] ; then
+ VARDIRS="/var/mail /var/spool /var/www /usr/lib/cgi-bin"
+ ROOTDIRS="/etc /chroot /home /root"
+else
+ VARDIRS=""
+ ROOTDIRS="/etc /home /root"
+fi
+
for dir in $VARDIRS; do
echo "syncing $dir ..."
for dir in $VARDIRS; do
echo "syncing $dir ..."