[CS-FSLUG] Need bash script

Frank Bax fbax at sympatico.ca
Sat Aug 13 10:46:34 CDT 2005


At 01:31 PM 8/12/05, Nathan T. wrote:
>I need a script which will move all the files from /mnt/cdrom to
>/home/nathan/cdback and then compare md5sums of the original files to
>the copied files. Any files that don't have matching md5sums should be
>moved to /home/nathan/cdback/badmd5 replacing any already in there
>with an identical name, then a new copy of the file should be taken
>from the cd and compared.


You don't a script - this is exactly what rsync does
         rsync -avz /mnt/cdrom /home/nathan/cdback
It will list only files copied. 





More information about the Christiansource mailing list