copy diff files


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users copy diff files
# 1  
Old 07-14-2006
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  
Old 07-14-2006
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  
Old 07-15-2006
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?
This User Gave Thanks to Hitori For This Post:
# 4  
Old 07-15-2006
By the way I cannot connect these comuters by network due to security policy of the company Smilie
This User Gave Thanks to Hitori For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Diff 3 files, but diff only their 2nd column

Guys i have 3 files, but i want to compare and diff only the 2nd column path=`/home/whois/doms` for i in `cat domain.tx` do whois $i| sed -n '/Registry Registrant ID:/,/Registrant Email:/p' > $path/$i.registrant whois $i| sed -n '/Registry Admin ID:/,/Admin Email:/p' > $path/$i.admin... (10 Replies)
Discussion started by: kenshinhimura
10 Replies

2. Shell Programming and Scripting

diff script to copy files to other dir when not exists

I have two directories that are mostly the same: dir1 dir2 Is there an easy way to take the output of diff and copy files from dir1 that do not exist in dir2 - but copy them to the same path (many nested directories). am only trying to copy files in dir1 that do not exist in dir2. ... (5 Replies)
Discussion started by: jvsrvcs
5 Replies

3. Shell Programming and Scripting

.procmailrc and uudeview (put attachments from diff senders to diff folders)

Moderator, please, delete this topic (1 Reply)
Discussion started by: optik77
1 Replies

4. Shell Programming and Scripting

diff bw two files

Hi All, I have two files which look as below File1 serial="1" name="abc" type="employee" field="IT" serial="2" name="cde" type="intern" field="Marketing" serial="3" name="pqr" type="contractor" field="IT" serial="4" name="xyz" type="employee" field="Sales" File2 serial="1"... (3 Replies)
Discussion started by: grajp002
3 Replies

5. Shell Programming and Scripting

diff of files

Hi, I have 2 files.I want to check if file1 is contained in file2. A.txt: ----- AAA BBB B.txt: ------ CCC AAA BBB DDD I want to check if A.txt is contained in B.txt. Can it be done using SED ? (12 Replies)
Discussion started by: giri_luck
12 Replies

6. Shell Programming and Scripting

Diff b/w 2 files

Hi Masters, I have two files named file1 and file2. Both the files contains the same contents with some difference in comments,space.But no content change. I tried to find the diff between the two files to make sure that contents are same. For that i tried diff -ibw file1 file2 But... (1 Reply)
Discussion started by: ecearund
1 Replies

7. Shell Programming and Scripting

Find duplicates from multuple files with 2 diff types of files

I need to compare 2 diff type of files and find out the duplicate after comparing each types of files: Type 1 file name is like: file1.abc (the extension abc could any 3 characters but I can narrow it down or hardcode for 10/15 combinations). The other file is file1.bcd01abc (the extension... (2 Replies)
Discussion started by: ricky007
2 Replies

8. Shell Programming and Scripting

Copy data and send it to other file, with diff config

I need a new script to 'grep' data from files in var and send it to another file in var folder with diff output, but like you now my Now How is very, very small then to have a idea is something like this: in file text1.txt have a few lines like this one: Y: { XXX1 { XXX2 YYYY { IIIIIIII... (0 Replies)
Discussion started by: single
0 Replies

9. Programming

what is diff b/w copy constructor and overloaded assignment operator

Helo i m new in c++. i m confuse about what is exact difference b/w copy constructor and overloaded assignment operator. Regards, Amit (3 Replies)
Discussion started by: amitpansuria
3 Replies

10. Shell Programming and Scripting

diff 2 files; output diff's to 3rd file

Hello, I want to compare two files. All records in file 2 that are not in file 1 should be output to file 3. For example: file 1 123 1234 123456 file 2 123 2345 23456 file 3 should have 2345 23456 I have looked at diff, bdiff, cmp, comm, diff3 without any luck! (2 Replies)
Discussion started by: blt123
2 Replies
Login or Register to Ask a Question