I want to copy files, ignoring & logging it if the target directory contains files with the same name. (Ubuntu 7.04)
I have a large number of CD-Rs & DVD-Rs containing files (mostly mp3s, but I don't think that's particularly relevant to the problem at hand) organised which I would like to copy to my hard disk, on a Ubuntu 7.04 system.
For each disc, I want to issue a single command (via command line or GUI, it doesn't matter) and have all the files recursively copied to the hard disk, retaining the directory structure. If a file with the same name already exists in the same directory in the target filesystem I would like it to be skipped and for this to be logged. I don't want the copying process to be interrupted with overwrite/ignore-type messages.
Ideally, the identical filename situation would *not* be logged if the files were also identical in size (or even better, if they had the same hash). Also in a perfect world, the log would contain not only the names of skipped files, but also their size.
The --update argument to cp automates the 'identical filename' issue, but it is concerned with whether one file is more recent than another and that is not important to me.
I've looked at
Unison File Synchronizer, but can't see a way to get it to do what I want.
Thanks!
posted by DarkForest at 5:40 AM on September 10, 2007