Aug
18
2011
#!/bin/bash # Author: Karsten Brusch # change to fit you needs USER=mysql PASS=mypass BACKUPDIR=/nfs/mysql/ BACKUPS LOGFILE=/nfs/mysql/daily-backup.log #no changes needed below DATE=`date +%F_%H-%M-%S` FILENAME=mysqldump.$DATE.sql echo "##########################################" >> $LOGFILE echo "Starting DB backup on `hostname` on `date +%F` `date +%T`" >> $LOGFILE /opt/postman/mysql/bin/mysqldump -u$USER -p$PASS –all-databases 2>> $LOGFILE | gzip > $BACKUPDIR/$FILENAME.gz if [ ${PIPESTATUS[0]} -eq 0 [...]
Nov
24
2010
Sometimes you need to modify the content of a zip file in the command line because the server doesn't have a X server and you have no access to the file system remotely. What this script does: modify text files inside a zip file with vi (or any other editor you like) modify the content [...]
Tags: linux
Nov
05
2010
You can easily move files of a certain age to a different location (for example backup tape or network share) In this example you will search for files only (-type f) which are older than 30 days (-mtime +30) and execute the move command for each file returned. This list of files is represented by [...]
Tags: linux
Oct
20
2010
objective Create a sftp-only user to have rw-access a specific folder only on a system with disabled ssh shell, port forwarding and X11-forwarding. This is achieved by setting the sftp shell in /etc/passwd required openssh version 4.8p1 or newer (this supports chrootdirectory) –> refer this page you can check your version with:sshd -v If you [...]
Tags: linux
Sep
21
2007
es tut sich einiges in der linuxwelt: intel (mit 80% marktanteil bei PC prozessoren) startet mit LessWatts.org eine initiative zur verbesserung der energie-effizienz auf linux servern und des power managements des linux-kernels der pinguin wird also grüner offene treiber für grafik und wlan entwickeln sich weiter die grafischen oberflächen gnome und kde entwickeln sich beachtlich [...]
Aug
21
2007
nun da ich mit virtualbox eine kostenfreie alternative zu vmware gefunden, wurde es zeit meine doch recht knappen 40GB meines laptop wieder mehr zugunsten von ubuntu aufzuteilen. tja, was tun? im laufenden betrieb die partitionierung ändern? geht nich… sprich: ntfs verkleinern und verschieben; ext3 vergrößern dauer: ca. 2h tool: gparted live-cd und clonezilla nach dem [...]
Jul
29
2007
zeig mir sowas auf M$ windows. die playlist lohnt sich! links: looking glass und ubuntu so long
Jul
07
2007
sehr genial gemacht think different so long
Jul
01
2007
im juli erscheint das openMoko ein auf opensource basierendes smartphone für mich die beste alternative zum iphone. ich bin in jedem fall gespannt wann ich fürs openmoko die ersten programme unter “projekte” anbieten kann. der preis des openmoko spielt dabei keine unbedeutende rolle… so long
Jun
28
2007
ich bin heut durch zufall auf die halloween-dokumente von microsoft gestoßen: „Fallstudien aus dem Internet haben kürzlich auf sehr dramatische Weise gezeigt […], dass die Qualität kommerzieller Produkte durch Open-Source-Produkte erreicht und (teilweise) sogar übertroffen werden kann.“ und das aus dem mund von m$ das ist mehr als eine genugtuung also weshalb sollte linux / [...]
Jun
27
2007
eine meldung und meine gedanken… manch einer wird sagen… “was solls, ist doch gut wenn microsoft sich bemüht seine dateitypen zu standardisieren” ich spreche aus erfahrung wenn ich behaupte dass noch mehr leute openoffice.org nutzen würden wenn nicht der großteil des umfeldes noch die alten formate von M$ nutzen würde. ich selbst nutze openoffice unter [...]