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:
0031afd
)
hcoop-backup: Update file permissions after run.
author
mwolson_admin
<mwolson_admin@deleuze.hcoop.net>
Tue, 2 Sep 2008 14:39:39 +0000
(10:39 -0400)
committer
mwolson_admin
<mwolson_admin@deleuze.hcoop.net>
Tue, 2 Sep 2008 14:39:39 +0000
(10:39 -0400)
hcoop-backup
patch
|
blob
|
blame
|
history
diff --git
a/hcoop-backup
b/hcoop-backup
index
51d4a79
..
3a65811
100755
(executable)
--- a/
hcoop-backup
+++ b/
hcoop-backup
@@
-160,6
+160,11
@@
tar -C /var/backups/databases/ -cf - . | \
ccrypt -k $KEYFILE -e | \
$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
+
+# Complain to admins if there are unknown files
grep '[a-z/]' complain && \
mail -a 'From: The Backup Program <backups@deleuze.hcoop.net>' \
-s "automated message: annoying files found on deleuze (please do something about them)" admins@hcoop.net \