[CentOS] Re: Opposite of cp -u

2007-08-07 Thread Scott Silva
Robert Moskowitz spake the following on 8/6/2007 4:22 PM: Scott Silva wrote: Robert Moskowitz spake the following on 8/6/2007 2:40 PM: I had at one point copied a large number of files between drives and did not use the -p and thus the timestamps were all set to the date of the copy. I

[CentOS] Re: Opposite of cp -u

2007-08-06 Thread Scott Silva
Robert Moskowitz spake the following on 8/6/2007 2:40 PM: I had at one point copied a large number of files between drives and did not use the -p and thus the timestamps were all set to the date of the copy. I did not catch this, and deleted the source. So I 'lived' with it and have since

Re: [CentOS] Re: Opposite of cp -u

2007-08-06 Thread Greg Bailey
Robert Moskowitz wrote: Scott Silva wrote: Robert Moskowitz spake the following on 8/6/2007 2:40 PM: I had at one point copied a large number of files between drives and did not use the -p and thus the timestamps were all set to the date of the copy. I did not catch this, and deleted the

[CentOS] Re: Opposite of cp -u

2007-08-06 Thread Robert Nichols
Robert Moskowitz wrote: I had at one point copied a large number of files between drives and did not use the -p and thus the timestamps were all set to the date of the copy. I did not catch this, and deleted the source. So I 'lived' with it and have since changed many files. Well,

Re: [CentOS] Re: Opposite of cp -u

2007-08-06 Thread Stephen Harris
On Mon, Aug 06, 2007 at 06:27:20PM -0500, Robert Nichols wrote: for F in * do cmp $F /new/directory/$F touch -r $F /new/directory/$F done That will compare all the files and adjust the timestamp on the files that are still the same as those on the backup. Note that, despite

[CentOS] Re: Opposite of cp -u

2007-08-06 Thread Robert Nichols
Stephen Harris wrote: On Mon, Aug 06, 2007 at 06:27:20PM -0500, Robert Nichols wrote: for F in * do cmp $F /new/directory/$F touch -r $F /new/directory/$F done That will compare all the files and adjust the timestamp on the files that are still the same as those on the backup.