Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!bu.edu!att!linac!midway!gargoyle!chinet!les From: les@chinet.chi.il.us (Leslie Mikesell) Newsgroups: comp.unix.misc Subject: Re: smart copy/update routine Message-ID: <1991Feb03.203626.17527@chinet.chi.il.us> Date: 3 Feb 91 20:36:26 GMT References: <1991Jan28.155450.24449@cec1.wustl.edu> Organization: Chinet - Chicago Public Access UNIX Lines: 12 In article <1991Jan28.155450.24449@cec1.wustl.edu> beard@informatics.wustl.edu writes: >What I need is a >program that can be told to copy files from source to target iff the >file to be copied does not exist on the target or the source version >is newer than the version in the target directory. find source_dir -print |cpio -pdm target_dir Cpio will not overwrite a newer file unless you use the -u option. Les Mikesell les@chinet.chi.il.us