The UNIX and Linux Forums  

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
Find duplicates from multuple files with 2 diff types of files ricky007 Shell Programming and Scripting 2 03-04-2008 01:46 PM
Copy data and send it to other file, with diff config single Shell Programming and Scripting 0 01-29-2008 09:56 AM
what is diff b/w copy constructor and overloaded assignment operator amitpansuria High Level Programming 3 08-06-2007 04:45 PM
get diff beteween two files jtrevinojr UNIX for Dummies Questions & Answers 2 12-30-2003 01:15 PM
diff 2 files; output diff's to 3rd file blt123 Shell Programming and Scripting 2 05-28-2002 12:29 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 07-14-2006
Hitori's Avatar
Hitori Hitori is offline Forum Advisor  
Registered User
  
 

Join Date: Jun 2006
Posts: 360
Question copy diff files

I have to synchronize files on two machines, but these are not connected via LAN. Now I'm using DVD's to copy new data.
The question is how can I create a list of files on one machine and having this list archive or copy only new files from other. Are there any standard tools like diff/patch for sources?
  #2 (permalink)  
Old 07-14-2006
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,763
As an aside How about unison?

tar the files onto the DVD and then later off onto a disk working directory to preserve file metadata. Use stat to write filenames and mtimes to a file that lives in a safe place. Run unison or whatever to get the files in sync. Then burn a new DVD only with files from the working directory that have different mtimes than the before snapshot, based on the file with mtimes.

If the two systems support ssh, you can run unison under ssh through dialup. unison is very efficient and only moves the deltas of file data, not usually whole files. It may not be what you'd want but it's worth a look. Better than the sneaker network.
(meaning carrying disks back and forth between computers)
  #3 (permalink)  
Old 07-15-2006
Hitori's Avatar
Hitori Hitori is offline Forum Advisor  
Registered User
  
 

Join Date: Jun 2006
Posts: 360
I think unison is too "heavy" for my purposes. I need not to work with CVS or SVN, also all files may be considered as binary (i.e. no patches based on their content, files must be just replaced with newer).
I thought that I can make a list of files on one computer (with find/ls/stat or so) and feed this list to the tar on other computer to make an archve with new files. Is this possible?
  #4 (permalink)  
Old 07-15-2006
Hitori's Avatar
Hitori Hitori is offline Forum Advisor  
Registered User
  
 

Join Date: Jun 2006
Posts: 360
By the way I cannot connect these comuters by network due to security policy of the company
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 09:42 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