scp complete folder

Posted on 2008-06-10
Last Modified: 2013-12-27
hai !
      I know to scp a file from one server to another.

My question is if i want to scp complete folder (directory) from one server to another to do it ?
Question by:vishali_vishu

Expert Comment

ID: 21752021
LVL 16

Accepted Solution

Hanno P.S. earned 500 total points
ID: 21752076
   scp -r sourcedir server:targetdir
    scp -r server:sourcedir targetdir
LVL 40

Expert Comment

ID: 21752136
if you have big directory and big files and sub directories, you may use ftp:

wget -r --ftp-user=username --ftp-password=pass ftp://servername:/path/to/dir

if ypu don't have wget you may download from

This will use ftp to copy which is faster than scp

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Using Grep to Find a file 8 107
what is a good general partitioning scheme for RHEL? 23 143
Shell Script on AIX 7 142
remove one line from a file in solaris 8 57
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question