SCP Recursively — How to SCP a directory of files

Seth Webster Ⓥ
Thoughts on the World
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…

--

--

Seth Webster Ⓥ
Thoughts on the World

Photographer, Filmmaker, Musician, Artist, Activist, working every day to make a difference.