From: mwolson_admin Date: Wed, 3 Sep 2008 07:54:13 +0000 (-0400) Subject: hcoop-backup: Directory itself must be owner-writable. X-Git-Url: http://git.hcoop.net/clinton/scripts.git/commitdiff_plain/74bfc8b7d79cbf6025e8389d00a3f96d0d33c454?hp=512ea01a8d43996e0ee54500d688f1bbfa125252;ds=inline hcoop-backup: Directory itself must be owner-writable. Otherwise it can't be deleted. --- diff --git a/hcoop-backup b/hcoop-backup index 3a65811..d771434 100755 --- a/hcoop-backup +++ b/hcoop-backup @@ -162,6 +162,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 chown -R rsync $RSYNCDIR # Complain to admins if there are unknown files