From: mwolson_admin Date: Thu, 4 Sep 2008 02:38:03 +0000 (-0400) Subject: hcoop-backups: Further tweak permissions. X-Git-Url: https://git.hcoop.net/hcoop/scripts.git/commitdiff_plain/0fe4060a9f19677cad407d3a0246ec8a2a221fcd hcoop-backups: Further tweak permissions. --- diff --git a/hcoop-backup b/hcoop-backup index 2bf50f9..31dc4f2 100755 --- a/hcoop-backup +++ b/hcoop-backup @@ -25,7 +25,8 @@ IFS=$'\n' RSYNCDIR=/vicepa/hcoop-backups/files rm -fr $RSYNCDIR mkdir -p $RSYNCDIR/$CURDATE -chmod -R og= $RSYNCDIR +chmod og=rx $RSYNCDIR +chmod og= $RSYNCDIR/$CURDATE # 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 +chmod u+w $RSYNCDIR $RSYNCDIR/$CURDATE chown -R rsync $RSYNCDIR/$CURDATE # Complain to admins if there are unknown files