From: mwolson_admin Date: Mon, 8 Sep 2008 21:15:27 +0000 (-0400) Subject: hcoop-backup: More permissions twiddling. X-Git-Url: https://git.hcoop.net/hcoop/scripts.git/commitdiff_plain/253d533797c473e091840d3098f7eb98a32202b3?ds=sidebyside hcoop-backup: More permissions twiddling. --- diff --git a/hcoop-backup b/hcoop-backup index 31dc4f2..51da992 100755 --- a/hcoop-backup +++ b/hcoop-backup @@ -25,7 +25,7 @@ IFS=$'\n' RSYNCDIR=/vicepa/hcoop-backups/files rm -fr $RSYNCDIR mkdir -p $RSYNCDIR/$CURDATE -chmod og=rx $RSYNCDIR +chmod og=rx,u=rwx $RSYNCDIR chmod og= $RSYNCDIR/$CURDATE # Initialize backup staging area @@ -163,8 +163,8 @@ tar -C /var/backups/databases/ -cf - . | \ $MOVE_OVER $CURDATE $F # Update file permissions so that rsync.net can access the backups -chmod -R go=,u-w $RSYNCDIR -chmod u+w $RSYNCDIR $RSYNCDIR/$CURDATE +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