HCoop
/
clinton
/
scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make several scripts STFU.
[clinton/scripts.git]
/
hcoop-backup
diff --git
a/hcoop-backup
b/hcoop-backup
index
3a65811
..
51da992
100755
(executable)
--- a/
hcoop-backup
+++ b/
hcoop-backup
@@
-25,6
+25,8
@@
IFS=$'\n'
RSYNCDIR=/vicepa/hcoop-backups/files
rm -fr $RSYNCDIR
mkdir -p $RSYNCDIR/$CURDATE
RSYNCDIR=/vicepa/hcoop-backups/files
rm -fr $RSYNCDIR
mkdir -p $RSYNCDIR/$CURDATE
+chmod og=rx,u=rwx $RSYNCDIR
+chmod og= $RSYNCDIR/$CURDATE
# Initialize backup staging area
mkdir -p $BACKUPTMP
# Initialize backup staging area
mkdir -p $BACKUPTMP
@@
-161,8
+163,9
@@
tar -C /var/backups/databases/ -cf - . | \
$MOVE_OVER $CURDATE $F
# Update file permissions so that rsync.net can access the backups
$MOVE_OVER $CURDATE $F
# Update file permissions so that rsync.net can access the backups
-chmod -R go=,u-w $RSYNCDIR
-chown -R rsync $RSYNCDIR
+chmod -R go=,u-w $RSYNCDIR/$CURDATE
+chmod u+w $RSYNCDIR/$CURDATE
+chown -R rsync $RSYNCDIR/$CURDATE
# Complain to admins if there are unknown files
grep '[a-z/]' complain && \
# Complain to admins if there are unknown files
grep '[a-z/]' complain && \