Solved

scp complete folder

Posted on 2008-06-10
3
4,995 Views
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 .......how to do it ?
0
Comment
Question by:vishali_vishu
3 Comments
 
LVL 4

Expert Comment

by:albuitra
ID: 21752021
scp -r DIRECTORY
0
 
LVL 16

Accepted Solution

by:
Hanno Schröder earned 500 total points
ID: 21752076
   scp -r sourcedir server:targetdir
or
    scp -r server:sourcedir targetdir
0
 
LVL 40

Expert Comment

by:omarfarid
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

sunfreeware.com

This will use ftp to copy which is faster than scp
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
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 (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now