Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Linux Ask!

Jan 202010
 

Parallel downloader in Linux

Answer:

wget is perhaps the most popular downloader (command) in Linux, but it cannot establish more than 1 connection to the server for max. speed.

Axel is a lightweight download accelerator for Linux that solve the problem.

To install under Ubuntu:

# sudo apt-get install axel

To download a file by using 10 connections

# axel -n 10 http://www.example.com/file.gz

That's very cool!

Jan 192010
 

How to dump an MySQL/InnoDB database

Answer:

To do a point-in-time SQL dump of a InnoDB database, use the mysqldump command with the --single-transaction flag

# mysqldump --master-data=2 --single-transaction huge_db > backup.sql

The binlog position will be written in the backup.sql, which is very useful for database recovery if needed.