Linux

How to update rsync to the latest version 3.1.1-1

How to update rsync to the latest version 3.1.1-1

I had the task of migrating 63TB of data from an old backup server to a new array. The standard versions of Rsync that comes with Centos 6 and 7 do not support “Total Progress” Feature: rsync -a --info=progress2 SOURCE DESTINATION Here is how I updated rsync... read the rest »
DNS glibc vulnerability – Is your server secure?

DNS glibc vulnerability – Is your server secure?

A vulnerability within the glibc DNS client used by many recent Linux distributions has recently been identified. This vulnerability has the potential to allow malicious access to affected devices and software, allowing a third-party to cause a crash or run malicious code... read the rest »
Extracting a database from a large mysqldump file

Extracting a database from a large mysqldump file

Restoring a single database from a large mysql dump is pretty easy, using the mysql command line client’s –one-database option: mysql -u root -p --one-database db_to_restore < fulldump.sql But what if you don’t want to restore the database, you just want to extract it out of the dump file? Well, that happens to be easy as well, thanks to the magic of sed: sed -n '/^-- Current Database: `test`/,/^-- Current Database: `/p' fulldump.sql > test.sql You just need to change “test” to be the name of the database you want extracted.. ... read the rest »