Sending a Tar to another server

Useful one liner to tar a folder/directory on to another server over ssh…

tar zcvf – /folder/to/tar | ssh user@192.168.1.1 “cat > /tar/to/create”

Leave a Reply

Your email address will not be published. Required fields are marked *