Open utterances-bot opened 3 years ago
Original author: Ruslan Akhmyatzanov @ruslanakhmyatzanov
Original date: 2020-02-21T20:48:32Z
Great article! Thanks a lot!
This saved me from upgrading my disk space just to be able to import a database. Thanks a ton for this!
Import Remote Database Directly over SSH | Tom Lankhorst
Developing, maintaining and debugging web-applications often involves copying a remote database to a local or another remote machine. This post lists a number of methods that I find useful. It acts as a reference for myself which I happily update and improve based on comments and experience. My favourite method: stream the database dump directly to the target machine. I assume a MySQL or MariaDB database on a Unix or Mac OS machine but by adjusting the appropriate commands most of these methods apply to other databases as well.
https://tomlankhorst.nl/import-remote-mysql-db-over-ssh/