The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Compare files from two directories ravi214u Shell Programming and Scripting 2 07-14-2008 07:04 AM
cat files in different directories dsravan Shell Programming and Scripting 1 02-27-2008 11:36 PM
New Directories from Files Phobos Shell Programming and Scripting 3 01-21-2005 09:29 AM
deleting log files only in particular directories sameervs UNIX for Dummies Questions & Answers 2 06-01-2002 01:49 AM
files and directories listing bbolson UNIX for Dummies Questions & Answers 1 12-11-2001 01:30 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-15-2008
dnat dnat is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 40
ftp files with directories

hi,

i am trying to ftp files from one server to another.

how do i do it with all directories.(i mean i need the same directory structure)

mget -r * doesnt seem to work properly..pls help.
  #2 (permalink)  
Old 10-15-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,259
Afaik the usual ftp command line clients do not support such a thing. Maybe you want to setup scp, in other words ssh, because it is encrypted and offers a recursive switch (-r).
Maybe tar'ing your stuff on the otherside first and ftp'ing it then is an option. Or maybe rsync...
  #3 (permalink)  
Old 10-15-2008
dnat dnat is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 40
how to do a tar

tar -c <folder_name> xx.tar gives me an error

tar: /dev/rmt0: The specified device does not exist.
  #4 (permalink)  
Old 10-15-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,259
You are missing the "-f":
Code:
man tar
tar -cvf <archivename> <all-stuff-to-be-tar'ed>
tar -cvf archive.tar somedir
  #5 (permalink)  
Old 10-15-2008
dnat dnat is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 40
thank you so much..it is tar-ed..but how to retrieve it back?
  #6 (permalink)  
Old 10-15-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,259
I already suggested to read the man pages for tar. Change the c for create vs. x for eXtract.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:50 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0