Unix Shell - how to transfer a directory and its subdirectories using sftp ?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > March 2006 > how to transfer a directory and its subdirectories using sftp ?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how to transfer a directory and its subdirectories using sftp ?
jeniffer

2006-03-21, 3:17 am

How to transfer an entire directory structure(subdirectories and files
included) from a remote machine to local machine?

simonp@nospam.com

2006-03-21, 3:17 am

jeniffer <zenith.of.perfection@gmail.com> wrote:
> How to transfer an entire directory structure(subdirectories and files
> included) from a remote machine to local machine?
>


Use scp with the -r option.

Simon
--
Stupendous Tales
www.stupendoustales.com
Speculative Fiction, Pulp Dreams
matt_left_coast

2006-03-21, 5:56 pm

jeniffer wrote:

> How to transfer an entire directory structure(subdirectories and files
> included) from a remote machine to local machine?


If you are only going to copy the "directory structure" once, use scp. If
you want to keep the second system synchronized with the first, use rsync
over ssh:

(from the rsync man page)

I mirror a directory between my "old" and "new" ftp sites with the command:

rsync -az -e ssh --delete ~ftp/pub/samba nimbus:"~ftp/pub/tridge"


--


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com