1 |
Florian Philipp <lists@f_philipp.fastmail.net> wrote: |
2 |
|
3 |
> James schrieb: |
4 |
> > All, |
5 |
> > |
6 |
> > I'm trying to find a good way to compare two complex directory |
7 |
> > structures to see what files differ. I've looked at a few different |
8 |
> > options: |
9 |
> > |
10 |
> > - rsync dry run (someone said this should work, but I'm having trouble |
11 |
> > getting good information out of this) |
12 |
> > - diff -rq (this works, but it's sloowwwwww) |
13 |
> > |
14 |
> > I've used cdircmp before but it tends to crash on complex directories |
15 |
> > (a directory with more than a few subdirs and with hidden dot files). |
16 |
> > |
17 |
> > Thoughts? Any specific / good utilities for doing this? |
18 |
|
19 |
star -c -diff -v -C from-dir . to-dir |
20 |
|
21 |
Check diffopts= to learn how to tell star what to compare. |
22 |
|
23 |
It is fast, compares all file attributes and it does not go into loops if you |
24 |
encounter symlinks to directories. |
25 |
|
26 |
Jörg |
27 |
|
28 |
-- |
29 |
EMail:joerg@××××××××××××××××××××××××.de (home) Jörg Schilling D-13353 Berlin |
30 |
js@××××××××××××.de (uni) |
31 |
joerg.schilling@××××××××××××××××.de (work) Blog: http://schily.blogspot.com/ |
32 |
URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily |