This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Backup MySQL database(s) to local and/or remote server. | |
# databases=( 'DB_1' 'DB_2' 'DB_3') | |
databases=( ) | |
db_host="localhost" | |
db_user="" | |
db_pass="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Enter the name of the domain you wish to create" | |
read a | |
echo "Create DocumentRoot directory..." | |
if [ ! -d /var/www/$a ]; then | |
mkdir -p /var/www/$a/public_html | |
mkdir -p /var/www/$a/logs |
NewerOlder