HCoop
/
hcoop
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f1a20ec
)
hcoop-backup: Be sure that only root can read in-progress backups.
author
mwolson_admin
<mwolson_admin@deleuze.hcoop.net>
Wed, 3 Sep 2008 08:09:52 +0000
(
04:09
-0400)
committer
mwolson_admin
<mwolson_admin@deleuze.hcoop.net>
Wed, 3 Sep 2008 08:09:52 +0000
(
04:09
-0400)
hcoop-backup
patch
|
blob
|
blame
|
history
diff --git
a/hcoop-backup
b/hcoop-backup
index
d771434
..
2bf50f9
100755
(executable)
--- a/
hcoop-backup
+++ b/
hcoop-backup
@@
-25,6
+25,7
@@
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 -R og= $RSYNCDIR
# Initialize backup staging area
mkdir -p $BACKUPTMP
# Initialize backup staging area
mkdir -p $BACKUPTMP
@@
-163,7
+164,7
@@
tar -C /var/backups/databases/ -cf - . | \
# Update file permissions so that rsync.net can access the backups
chmod -R go=,u-w $RSYNCDIR
chmod u+w $RSYNCDIR
# Update file permissions so that rsync.net can access the backups
chmod -R go=,u-w $RSYNCDIR
chmod u+w $RSYNCDIR
-chown -R rsync $RSYNCDIR
+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 && \