[plug] Merging two directories

Gregory Orange gregory.orange at gmail.com
Mon Oct 12 14:32:20 WST 2009


2009/10/12 Shanon Loughton <autobot at iinet.net.au>:
> HI all
> I need to merge two directories, which are fairly large ~4GB each.
> A copy of the original dir (dir2) was taken two weeks from the
> original (dir1) and altered over that time.  Need to merge dir2 back
> into dir1.  I can find differences with diff or find.
> Some files are newer and *smaller* which are suspect and need to be
> manually analysed, thus either flagged or left alone by the tool.
>
> Anyone know a good tool I could use??

Personally I'd put together a script using find and diff and 'lt'/'gt'
(or whatever the bash/<insert-chosen-shell-or-language> directive is)
to move in newer bigger files, delete identical files, and output a
list of newer smaller files.

-- 
Gregory Orange



More information about the plug mailing list