Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Download contents of /home/ at once? 2

Status
Not open for further replies.

frozenpeas

Technical User
Sep 13, 2001
893
CA
Hi,

I need to download the entire /home/ directory in one fell swoop.

Can I do this through SSH or FTP? How?

Thanks.
 
cd to your target directory
ftp to host
cd to source directory
enter 'prompt' command to turn off interactive confirmation for each file/dir
mget *

an alternate choice (assuming you have telnet
access to the source host)
create a tar file with the directory contents
and compress it with gzip.
Then use ftp to pickup the single file.
This will be faster if you are transfering
large amounts of data.

Robert Robert G. Jordan
Unix Sys Admin
Sleepy Hollow, Illinois U.S.A.
sh.gif


FREE Unix Scripts
 
you can use the file-transfer side of ssh (called scp). the syntax is


for remote-to-local copy
$ scp -r user@server:/source/dir /target/dir

for remote-to-local copy
$ scp -r /source/dir user@server:/target/dir

note the lack of trailing slashed (important)
you will be asked for the ssh password


----------------- if you find my advice useful, please rate me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top