smart copy/update routine
Leslie Mikesell
les at chinet.chi.il.us
Mon Feb 4 07:36:26 AEST 1991
In article <1991Jan28.155450.24449 at cec1.wustl.edu> beard at 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 at chinet.chi.il.us
More information about the Comp.unix.misc
mailing list