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 Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Transfering file from unix server to a windows pc Preet IP Networking 1 05-13-2008 03:00 PM
FTP multiple files from remote server to local server berlin_germany Shell Programming and Scripting 2 12-20-2006 03:24 AM
automatic transfering of files using scp tcruicksh Shell Programming and Scripting 1 06-22-2006 09:57 PM
transfering files unix to pc intern UNIX for Dummies Questions & Answers 8 05-30-2006 05:35 AM
Transfering files vbs UNIX for Dummies Questions & Answers 5 06-25-2002 11:24 PM

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-16-2003
Alan Bird Alan Bird is offline
Registered User
  
 

Join Date: Aug 2001
Location: Longview, Washington
Posts: 7
Question Transfering files from one server to another.

My oracle database is generating archive logs. I want to copy those archive logs over to backup server on a regular basis. I know how to create an ftp job and I can put it in my crontab. My problem is that I don't know how to send the files just once instead of sends all the files in the directory over and over.

Example: I have archives 1, 2 & 3 when the cron job starts. It sends archives 1, 2 & 3 over to the other server. Now 6 hours later when the cront job runs again there are archives 1, 2, 3, 4 & 5. How do I make the program know that I have already sent over 1, 2 & 3 so that is only sends 4 & 5? I am thinking that if the ftp could return the contents of the directory on the backup server then some how compare what is in the directories of the two servers and only send over the difference that would solve my problem. I know that I can do a dir to find out what is over there but I don't know how to handle what comes back and then compareing them. Does any one have any ideas or am I on the wrong track entirelly? I appericate your help.
  #2 (permalink)  
Old 09-16-2003
Cameron's Avatar
Cameron Cameron is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 499
Check out rsync - exactly what you need & easy to use.
  #3 (permalink)  
Old 09-18-2003
Alan Bird Alan Bird is offline
Registered User
  
 

Join Date: Aug 2001
Location: Longview, Washington
Posts: 7
thanks

Thanks Cameron, we will try that.
  #4 (permalink)  
Old 09-18-2003
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
Also rcp is great if you can ensure the files are NOT writable on the destination server....


#man rcp
Copy Multiple Files
rcp [-p] [-S size] [-R size] source_file1 [source_file2]... dest_dir

dest_file ......... This option specifies the name of the destination
file. If host name and path name are not
specified, then the existing file is copied into a
file named dest_file in the current directory on
the local system. If dest_file already exists and
is writable, then the existing file is
overwritten. The destination file names are
constructed in the same way as source files except that the usage of file name expansion characters
is forbidden in the case of destination file
names.
  #5 (permalink)  
Old 09-18-2003
Alan Bird Alan Bird is offline
Registered User
  
 

Join Date: Aug 2001
Location: Longview, Washington
Posts: 7
Thanks I will look into that also.
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 08:16 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