FTP Files from one server to another


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers FTP Files from one server to another
# 1  
Old 04-01-2009
FTP Files from one server to another

Hi,

I want to run a process on server a, pulling files from server b and pushing it to server c.

Can i do that without dropping the files on server a?

Thanks,
Samit

Last edited by samit_9999; 04-01-2009 at 01:38 PM..
# 2  
Old 04-01-2009
Not ftp - look into scp instead.
# 3  
Old 04-01-2009
As Jim said, scp (secure copy). It functions much the same as copy and even has the "preserve" option (dash-p) so the transfered files maintain their original date/time stamp, permissions, etc.

Say you want to copy files whose names include today's date-stamp in /nas1/prod/data of node "penguin" to /nas3/dev/data of node "seal" and you are on irrelevant server. Your user ID is samit on penguin and s99 on seal. Oh, and you want to preserve the file attributes of the source files. Here's what you would type:
Code:
irrelevant$ scp -p samit@penguin:/nas1/prod/data/*20090401* s99@seal:/nas3/dev/data

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How Do I FTP System Files to Different Server?

Hello, I have a legacy system that is running on SCO OpenServer 5.0.6, and the hardware is becoming a little sketchy. I replaced the hard drive about a year ago, and was able to come back from a tape backup of my entire system. I have been successful with building a VM with VMware Workstation,... (42 Replies)
Discussion started by: spock9458
42 Replies

2. Solaris

FTP-ing files from Windows server to UNIX server

I need to transfer files from a Windows server to the Unix server and have to run some shell script on it to get the required output. Is it possible to transfer files from Windows server to unix server through any shell script? If so can you please help me with the details. Thanks in... (8 Replies)
Discussion started by: ssk250
8 Replies

3. Shell Programming and Scripting

FTP multiple files from one server to one server

Hi, I'm new to shell script..I have one requriement like - In one server have more than one files,I want to ftp those files to some otehr server.. Ex : test1.pdf test2.pdf Please suggest me how to do (3 Replies)
Discussion started by: venkaswa
3 Replies

4. Shell Programming and Scripting

Need help creating a script to FTP files to a server and then delete the files that were transfered.

I am trying to FTP files to a Windows server through my Linux machine. I have setup the file transfer with no problems but am having problem deleting those files from the Linux box. My current non-working solution is below. Any ideas, anyone?? :wall: Please be gentle, I'm fairly new to this... (4 Replies)
Discussion started by: jmalfhs
4 Replies

5. Shell Programming and Scripting

script for to take files from FTP server to UNIX server and Unzipped that files

script for to take files from FTP server to UNIX server and Unzipped that files (1 Reply)
Discussion started by: sunilamarnadh
1 Replies

6. Shell Programming and Scripting

Need help in deleting old files from a ftp server

Hi, I'm quite new to unix and perl scripting and need to write a script to delete files older than 7 days from a remote ftp server. Unix or Perl script would do... I wrote the following code: #!/usr/local/bin/perl use File::Basename; use Net::FTP; #use Net::FTP::File; my $verbose =... (15 Replies)
Discussion started by: arunsoman80
15 Replies

7. Filesystems, Disks and Memory

Not able to FTP the files to a FTP server

Hi , We are facing a weird problem in our project. we need to send some xml & audio files to a remote FTP server from a Linux box, we are doing this in Perl script using Net::FTP->. Issue here is.. when FTPed the files using Perl scripts, only empty files ( 0 byte) are getting created on the... (2 Replies)
Discussion started by: kishorepotta
2 Replies

8. Shell Programming and Scripting

delete old files from FTP server

Hi I just started learning Unix scripts. I need to access an FTP server, delete all the files except the latest 6 files and the latest 6 files should be downloaded to my local server. Could some body help me to code this logic in KSH ? Thanks Athena (1 Reply)
Discussion started by: Athena
1 Replies

9. UNIX for Dummies Questions & Answers

Listing all files on FTP Server

Hello, I am the definition of UNIX newbie so please bare with me. I am wondering the best way to list all files on a ftp server. If I use curl -l ftp://user:password@ftp_server This shows me the root of the ftp server, but I would like to get a listing of everything in the subfolders ... (7 Replies)
Discussion started by: Dallasbr
7 Replies

10. Shell Programming and Scripting

FTP multiple files from remote server to local server

Hi, I am facing a weired problem in my FTP script. I want to transfer multiple files from remote server to local server everyday, using mget * in my script. I also, want to send an email for successful or failed FTP. My script works for file transfer, but it don't send any mail. There is... (2 Replies)
Discussion started by: berlin_germany
2 Replies
Login or Register to Ask a Question