On Sat, 5 Feb 2011 08:05:05 +0100, [email protected] wrote:

>  Now I need a copy mechanism which does the following:
>  * copy all files with newer date to 'target' -- this can be done via
>    'cp -u'
>  * copy all files which only exist in 'source' to 'target' --
>    this can be done also with 'cp -u'
>  * BUT: Delete all files from 'target' which do not longer exist in 
>    'source'

rsync -a --delete source/ dest/


-- 
Neil Bothwick

Top Oxymorons Number 36: Alone together

Attachment: signature.asc
Description: PGP signature

Reply via email to