smart copy/update routine
Ed Wright
edw at sequent.UUCP
Wed Jan 30 06:34:45 AEST 1991
In article <1991Jan28.155450.24449 at cec1.wustl.edu> beard at informatics.wustl.edu writes:
%Is there such a thing available as unix source? 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.
make a timestamp file
run find on your your filesystem looking for files newer than timestamp
let the result of the find be an argument to tar as filename
and tar cBf - $filename | (cd /newplace;tar xpBf -)
When you're done touch timestamp
Then you're ready for next time.
Ed
--
I think I've got the hang of it now .... :w :q :wq :wq! ^d X exit
X Q :quitbye CtrlAltDel ~~q :~q logout save/quit :!QUIT ^[zz
^[ZZ ZZZZ ^H ^@ ^L ^[c ^# ^E ^X ^I ^T ? help helpquit ^D ^d
^C ^c helpexit ?Quit ?q ^Kx /QY sync;halt KA9AHQ edw at sequent.com
More information about the Comp.unix.misc
mailing list