Apache is installed by default, here's how to configure it.
vi /etc/apache2/httpd.conf
Add the following line
# !/bin/bash | |
backup_dir="" | |
#String to append to the name of the backup files | |
backup_date=`date +%d-%m-%Y` | |
db="" | |
#Numbers of days you want to keep copie of your databases | |
pg_dump -b --data-only -T '"SequelizeMeta"' $db>$backup_dir/$db\_$backup_date.sql |
# path format | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\e[91m\u\e[33;40m@\H:\[\033[32m\]\w\[\033[36m\]\$(parse_git_branch)\[\033[00m\] $ " |