nc -l 5566 > data-dump.sql
Listen on port 5566 and redirect output to data-dump.sql
nc <ip-address-of-the-receiver> 5566 < data-dump.sql
Connect to the listening receiver and redirect input from data-dump.sql
Source: Sharing files like a hacker by Jesse Storimer