views:

120

answers:

3

something like:

scp -r all_directories_in_current_directory fenix@xxxxx:~/data

anyone can give me a clue?

+1  A: 

Use rsync rather thsn scp, e.g.

$ rsync -av ./ fenix@xxxxx:data/
Paul R
the difference is scp already provides secure connection. If you want to do the same with rsync, it will have to be used with SSH.
ghostdog74
@ghostdog74: Current implementations of rsync already use ssh by default - if you have a very old version of rsync then just add `-e ssh` to the command line.
Paul R
+2  A: 
scp -r * fenix@xxxxx:~/data 

If you only want the directories, not the files in the current directory:

scp -r */ fenix@xxxxx:~/data 

This will not copy hidded(names startingwith a . ) directories.

Anonym
A: 

Do NFS mount, and do cp -avx.

thegeek