|Nick Slowinski d4fb0ededa||11 months ago|
|LICENSE||11 months ago|
|LIESMICH.md||11 months ago|
|README.md||11 months ago|
|TeamSpeak_file_eraser.sh||11 months ago|
|VERSION||11 months ago|
Für eine Deutsche Version dieser Datei, schau dir bitte “LIESMICH.md” an.
My English is far from perfect, if you find a mistake in this or other files, please take the time and email me. You can find my email address under “Bugs, help and support”. Thank you.
This script allows you to delete uploaded files in a Channel of a TeamSpeak server after a preset time. This way, users can exchange data and you never have to worry about tight disk space again.
It is recommended to save and run the script in a subfolder, because the script briefly writes certain data in the same directory.
$ mkdir TeamSpeak_file_eraser && cd TeamSpeak_file_eraser $ git clone https://git.nick-slowinski.de/Nick1307/TeamSpeak_file_eraser.git
For configuration the script
TeamSpeak_file_eraser.sh has to be edited directly.
The configuration takes place from line 20 to 67 and contains important explanations of the individual points. You should not change any of the following lines, if you do, it must be done under license!
This script was designed to run as a cronjob, but it can also be run manually.
Important: It is strongly recommended not to execute the script several times per minute! Reason: The script writes deleted files to a separate log whose file name refers only to the current minute of execution. If the script is executed again (this minute), this overwrites the last entries.
Execute the command
crontab -e and enter one of the following lines. Alternatively, a custom cronjob can be used.
0 * * * * bash /path/to/TeamSpeak_file_eraser.sh >/dev/null 2>&1
Execution of every 15 minutes:
*/15 * * * * bash /path/to/TeamSpeak_file_eraser.sh >/dev/null 2>&1
$ bash /path/to/TeamSpeak_file_eraser.sh
Note: The script is not executable by default and can only be executed with
For questions, bugs, suggestions for improvement, help, etc. please contact me by email (firstname.lastname@example.org). My private PGP key can be found at keys.openpgp.org. Encrypted communication is possible with this key.
This project is under the GNU General Public License v3. This is attached to the repository as “LICENSE”.