Prev: What's the point of using tar *for backup* today?
Next: Q. How do I get bash to respect my physical directory structure?
From: sysdrk on 6 Jan 2010 11:30 > > I have a lot of files I need to copy to another server using scp > > (secure copy). For efficiency reasons I want to minimize the number > > of scp invocations. So, logically I would like to do this: > > find ... [files] | xargs -i scp {} user(a)server:/somedir > > Unfortunately, I have to use the replacement string {} since I need to > > provide a directory as the last parameter to scp. However, this > > causes xargs to invoke scp for each individual file. Thanks for all the replies. It looks like the wrapper suggestion is the easiest and cleanest solution so I'm going to go with that. Denis |