scp complete folder

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 ?
LVL 1
vishali_vishuAsked:
Who is Participating?
 
Hanno P.S.Connect With a Mentor IT Consultant and Infrastructure ArchitectCommented:
   scp -r sourcedir server:targetdir
or
    scp -r server:sourcedir targetdir
0
 
albuitraCommented:
scp -r DIRECTORY
0
 
omarfaridCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.