[CentOS] compare directories

Mogens Kjaer mk at crc.dk
Thu Oct 23 10:28:11 UTC 2008


David Hláčik wrote:
> Hello guys,
> 
> I have two mirrors. I need to compare files and directories on both mirrors
> and as a result print list of those which are missing on mirror 2

Can you use rsync with the -n switch (dryrun) to mirror from
mirror 1 to mirror 2 and see what would be transferred?

Mogens

-- 
Mogens Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Mobile: +45 22 12 53 25
Email: mk at crc.dk Homepage: http://www.crc.dk


More information about the CentOS mailing list