Site Deployment I version control my site with Git and I deploy it with a dumb little Makefile The default umask on SDF is 077, but the gopher server seems to require 022 on files and directories, so I use a couple find commands to make the mode change stick even though my local default is 022 already. PHLOG := sdfg.tar.gz GOPHER_DEST := gopher HOST := sdf.org EXCLUDE := tarexclude.txt all: rm site deploy site: @find . -type f -exec chmod 644 {} \; @find . -type d -exec chmod 755 {} \; tar czvf $(PHLOG) --exclude-vcs --exclude-from=$(EXCLUDE) * rm: @rm sdfg.tar.gz 2> /dev/null || true deploy: ssh $(HOST) "cat | tar xzvf - -C $(GOPHER_DEST)" < $(PHLOG) .PHONY: all site rm deploy