Transferring big files from one server to another server

Recently I had this issue to transfer around 20gb files from staging server to dev server in order to let developers test with actual data.

For this purpose, first I compressed the folders with tar:

tar -cvvf /diretory/images.tar ./images/

And after it finished, I transferred the tar file from one ssh to another one.

First ssh to the destiny server and then there I fetched the tar file from source server:

scp  user@sourceserver:/directory/images.tar ./

More info about scp here