Accept all incoming connections from [Your_IP] using TCP protocol
Dump PostgreSQL DB
Restore PostgreSQL DB.
In order to auto-update a filesystem folder after a git pull on a specific branch, I add the following to the .git/hooks/post-receive file on the repo folder on the server:
#!/bin/sh
read oldrev newrev ref
BRANCH=`echo $ref | cut -d / -f 3-`
if [ "$BRANCH" = "<Branch_Name>" ]; then
DIR ...
Fetch files using wget with resume in case of drop connection option.
© Leon Waldman 2015
Powered by Pelican