Copy files between Unix systems

By neokrates, written on April 23, 2010

bash   snippet

  • Join date: 11-30-99
  • Posts: 224
View Counter:
  • 4 views
Rate it
Ad
Poll
  • Which SQL implementations are mostly used in your projects?

    View Results

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext

Copy all files which match /my/dir/my_file_prefix* from the local host to the $REMOTE_HOST into /my/remote/dir/..
Authenticate as $REMOTE_USER:

scp /my/dir/my_file_prefix* $REMOTE_USER@$REMOTE_HOST:/my/remote/dir/.


💡 REMARK: permissions must be set for $REMOTE_USER so that he can copy.

Be Sociable, Share!
 
Does that help to solve your problem?
VN:F [1.8.5_1061]
Rating: 0 (from 0 votes)
0 votes 'YES'  0 votes 'NO'
TAGS
No tags for this post.
RELATED
Pages
Posts
SOCIAL
Be Sociable, Share!

Leave a Reply