I have a recent.sql.gz
file on a remote server. What I try to accomplish is the following: I want to open the file, push the content over SSH to my local machine, use zcat to uncompress the content and pipe it to mysql. Something like this:
ssh user@remote 'cat recent.sql.gz' | zcat | mysql
recent.sql.gz
is inHOME
dir of user on remote, and ssh work password less-ly, this should work.