Skip to content →

Category archive for: IT

rm is too slow

Вибачте цей текст доступний тільки в English. Fastest way to purge alot of files directory with large inode usage: rsync -a –delete empty/ target_directory/ Links…

Continue reading rm is too slow

Comments closed

The value of the code

Вибачте цей текст доступний тільки в Русский і English It is an very obvious thing for programmers but not for non-techies. The value of the code…

Continue reading The value of the code

Comments closed

Backup (mysql dump) all your MySQL databases in separate files

Вибачте цей текст доступний тільки в English. Simply #! /bin/bash TIMESTAMP=$(date +”%F”) BACKUP_DIR=”/backup/$TIMESTAMP” MYSQL_USER=”backup” MYSQL=/usr/bin/mysql MYSQL_PASSWORD=”password” MYSQLDUMP=/usr/bin/mysqldump mkdir -p “$BACKUP_DIR/mysql” databases=`$MYSQL –user=$MYSQL_USER -p$MYSQL_PASSWORD -e “SHOW…

Continue reading Backup (mysql dump) all your MySQL databases in separate files

Comments closed