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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to ftp a complete directory with sub-dirs

Status
Not open for further replies.

MarlonB

Programmer
Jan 11, 2002
7
NL
Can anybody tell me how to do that ?
 
Marlon,

my suggestion would be to tar up the directory to a file:

tar cvf <newfile>.tar <your_directory>

then (optional), compress it:

compress <newfile>.tar

and then ftp it (using binary mode) to where you require it. On completion, cd to the appropriate directory and uncompress/untar it to create a copy of your original directory:

uncompress <newfile>.tar.Z

tar -xvf <newfile>.tar

HTH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top