This file contains hidden or 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 | |
# | |
# | |
## Der PATH muss angepasst werden | |
## Für die Webseite kann z.b. /home/[BENUTZERNAME]/public_html/ | |
## Bsp: Path='/home/oliveror/public_html/' | |
Path='/home/[BENUTZERNAME]/[PFAD]/' | |
function setChmod { | |
ls -1 "$1" | while read file | |
do |
This file contains hidden or 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 | |
# | |
# Mit diesem Script kann eine gesamte Webseite gesichert werden. | |
# Das Zielverzeichnis (backupTargetPath) muss zuerst erstellt werden: | |
# $ cd /home/BENUTZERNAME/ | |
# $ mkdir websitebackup | |
# Datum; Bitte nicht anpassen | |
date=`/bin/date "+%Y-%m-%d-%H%M%S"` |
This file contains hidden or 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 | |
# | |
# Mit diesem Script koennen diverse Datenbank mit einem Schritt gesichert werden. | |
# Das Zielverzeichnis (backupTargetPath) muss zuerst erstellt werden: | |
# $ cd /home/BENUTZERNAME/ | |
# $ mkdir mysqlbackup | |
# Beispiel fuer mehrere Datenbanken ... | |
# databases='oliveror_db1 oliveror_joomla oliveror_wordpress'; | |
databases='DATENBANKEN'; |
This file contains hidden or 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 | |
# Description: Find Tables bigger than 2GB | |
# to clean up | |
# Global variables | |
TmpLog='/tmp/mysql_table.log' | |
# E-Mail recipients (multiple mail addresses separated by whitespace) | |
email='' | |
# InnoDB Table Files | |
Path='/var/lib/mysql/' |
This file contains hidden or 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/sh | |
#### | |
# Titel dnsbl_check | |
# Descritption This Script checks multiple ips and blacklist | |
#### | |
# Mail recipients (multiple mail addresses separated by whitespace) | |
mail='' | |
# Logfiles | |
LogFile='/tmp/rbltemp.log' | |
LogRBLfile='/var/log/rblfound.log' |
This file contains hidden or 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 | |
# Description: Find Tables bigger than 2GB | |
# to clean up | |
# Global variables | |
TmpLog='/tmp/mysql_table.log' | |
# E-Mail recipients (multiple mail addresses separated by whitespace) | |
email='' | |
# InnoDB Table Files | |
Path='/var/lib/mysql/' |
This file contains hidden or 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/sh | |
# | |
### BEGIN INIT INFO | |
# Provides: findbigfiles | |
# Required-Start: $local_fs $syslog | |
# Required-Stop: $local_fs $syslog | |
# Default-Start: 2 3 4 | |
# Default-Stop: 0 S 6 | |
# Short-Description: Search big Files | |
# Description: Search all big files in specific directories |