The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
read list of filenames from text file and remove these files in multiple directories fxvisions Shell Programming and Scripting 5 08-07-2008 04:59 PM
cd to multiple directories and gzipping files within sunsysadm2003 Shell Programming and Scripting 0 10-30-2007 05:50 PM
copy multiple files in different directories ken2834 UNIX for Dummies Questions & Answers 3 03-25-2007 02:35 PM
Search for files in multiple directories ravikirankethe UNIX for Dummies Questions & Answers 7 10-29-2006 05:29 PM
FTP multiple files to different directories abrd600 Shell Programming and Scripting 12 09-23-2004 08:56 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-26-2007
amit1209 amit1209 is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 1
get files from multiple directories using FTP

Hi,
I need to download multiple files in multiple directores from other Unix server. The files could have been created by differnet user. I can use root account but I want the preserve the owner and time of the remote file. Need help on how I can do this using FTP.

Thanks,
Amit
  #2 (permalink)  
Old 09-26-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
1. Using FTP, before downloading, usr dir or ls to get the owner, group and attributes of the file, then set them after download.

2. Use SSH and invoke tar & gzip on the far side, ungzip and untar on the client side with the option to maintain owner, group and attributes.
  #3 (permalink)  
Old 09-26-2007
Cameron's Avatar
Cameron Cameron is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 500
Yeah - option #2 is the easiest if SSH is already established.
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 05:59 PM.


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