This commit is contained in:
2019-02-28 12:50:27 +01:00
parent 403f297269
commit 7c4ccfa514
7 changed files with 1342 additions and 848 deletions

View File

@@ -0,0 +1,21 @@
<VirtualHost 144.76.58.9:80 [2a01:4f8:191:6204:0:0:0:2]:80 >
ServerName www.schubertdaniel.de
ServerAlias schubertdaniel.de
DocumentRoot /home/dany/www/schubertdaniel
DirectoryIndex index.php index.html
CustomLog /home/dany/www/log/schubertdaniel.log common
Header set Content-Language: de
<Directory /home/dany/www/schubertdaniel>
AllowOverride All # ermöglicht .htaccess
Require all granted # öffentlich zugänglich
Options -Indexes # kein Inhaltslisting
</Directory>
</VirtualHost>

34
beispiele/15/wp-backup.sh Normal file
View File

@@ -0,0 +1,34 @@
#!/bin/bash
function db_backup {
# Vars
host=localhost
user=XXXXXXX
pass=XXXXXXX
db=wordpress
echo 'DB Export ------> '
mysqldump --opt --add-drop-table -h$host -u$user -p$pass $db | gzip > wp-db.sql.gz
}
function file_backup {
backupfile="wordpress-backup.tar"
echo 'File Backup --- building tar File...'
tar -cf $backupfile ~/wp*
echo '+DONE'
}
echo '-------------------------------------------'
echo 'Tolles Backup Script'
echo '-------------------------------------------'
backupdir=backup
cd ~ ; mkdir $backupdir && cd $backupdir || { echo "FEHLER!!!!"; exit 1 }
# Funktionsaufrufe
db_backup
file_backup