Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!uunet!zephyr.ens.tek.com!tektronix!sequent!edw From: edw@sequent.UUCP (Ed Wright) Newsgroups: comp.unix.misc Subject: Re: smart copy/update routine Message-ID: <51818@sequent.UUCP> Date: 29 Jan 91 19:34:45 GMT References: <1991Jan28.155450.24449@cec1.wustl.edu> Reply-To: edw@sequent.UUCP (Ed Wright) Organization: Orygun Society For HUman Rustabillity Assessment Lines: 21 In article <1991Jan28.155450.24449@cec1.wustl.edu> beard@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@sequent.com