SCP Recursively — How to SCP a directory of files
Published in
1 min readMar 19, 2008
Recently I had to move an entire folder of MP3s from one server to another, and it just seemed silly to have to tar and transfer. Here’s how to do it with SCP:
find . -name “*.extension” -print0 | xargs -0 tar cvf — | ssh username at server tar xf -
Hope this helps…