Re: utility to compare 2 dir trees

2013-01-03 Thread Fbsd8

Adam Vande More wrote:

On Mon, Dec 31, 2012 at 8:39 PM, Fbsd8 fb...@a1poweruser.com wrote:


ended up trying
cd dir-tree1
mtree -c | mtree -p dir-tree2

Now this seems like it worked, except every thing was flagged for
non-matching modification time. How do I tell it to not check modification
time?




mtree -c -k sha256digest,uname,gname | mtree -p dir-tree2



Thank you that worked.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: utility to compare 2 dir trees

2013-01-01 Thread Adam Vande More
On Mon, Dec 31, 2012 at 8:39 PM, Fbsd8 fb...@a1poweruser.com wrote:

 ended up trying
 cd dir-tree1
 mtree -c | mtree -p dir-tree2

 Now this seems like it worked, except every thing was flagged for
 non-matching modification time. How do I tell it to not check modification
 time?



mtree -c -k sha256digest,uname,gname | mtree -p dir-tree2

-- 
Adam Vande More
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


utility to compare 2 dir trees

2012-12-31 Thread Fbsd8
I want to compare 2 different directory trees to each other to locate 
any differences in directories and files contained there in.


Any suggestions?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: utility to compare 2 dir trees

2012-12-31 Thread Adam Vande More
On Mon, Dec 31, 2012 at 7:23 PM, Fbsd8 fb...@a1poweruser.com wrote:

 I want to compare 2 different directory trees to each other to locate any
 differences in directories and files contained there in.

 Any suggestions?


mtree(8)

-- 
Adam Vande More
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: utility to compare 2 dir trees

2012-12-31 Thread Fbsd8

Adam Vande More wrote:

On Mon, Dec 31, 2012 at 7:23 PM, Fbsd8 fb...@a1poweruser.com wrote:


I want to compare 2 different directory trees to each other to locate any
differences in directories and files contained there in.

Any suggestions?



mtree(8)




From the man page I don't see how to code mtree to compare 2 different 
directory trees against each other.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: utility to compare 2 dir trees

2012-12-31 Thread Erich Dollansky
Hi,

On Mon, 31 Dec 2012 20:45:39 -0500
Fbsd8 fb...@a1poweruser.com wrote:

 Adam Vande More wrote:
  On Mon, Dec 31, 2012 at 7:23 PM, Fbsd8 fb...@a1poweruser.com
  wrote:
  
  I want to compare 2 different directory trees to each other to
  locate any differences in directories and files contained there in.
 
  Any suggestions?
 
  
  mtree(8)
  
 
 
  From the man page I don't see how to code mtree to compare 2
 different directory trees against each other.

you can compare a directory tree which is rooted in your current
directory and a specified one.

From man:

The mtree utility compares the file hierarchy rooted in the current
directory against a specification read from the standard input.
Messages are written to the standard output for any files whose
characteristics do not match the specifications, or which are missing
from either the file hierarchy or the specification.

Erich
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: utility to compare 2 dir trees

2012-12-31 Thread Fbsd8

Erich Dollansky wrote:

Hi,

On Mon, 31 Dec 2012 20:45:39 -0500
Fbsd8 fb...@a1poweruser.com wrote:


Adam Vande More wrote:

On Mon, Dec 31, 2012 at 7:23 PM, Fbsd8 fb...@a1poweruser.com
wrote:


I want to compare 2 different directory trees to each other to
locate any differences in directories and files contained there in.

Any suggestions?


mtree(8)



 From the man page I don't see how to code mtree to compare 2
different directory trees against each other.


you can compare a directory tree which is rooted in your current
directory and a specified one.

From man:

The mtree utility compares the file hierarchy rooted in the current
directory against a specification read from the standard input.
Messages are written to the standard output for any files whose
characteristics do not match the specifications, or which are missing
from either the file hierarchy or the specification.

Erich




So
cd dir-tree1
mtree -p dir-tree2

Do I understand you correctly?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: utility to compare 2 dir trees

2012-12-31 Thread Fbsd8

Fbsd8 wrote:

Erich Dollansky wrote:

Hi,

On Mon, 31 Dec 2012 20:45:39 -0500
Fbsd8 fb...@a1poweruser.com wrote:


Adam Vande More wrote:

On Mon, Dec 31, 2012 at 7:23 PM, Fbsd8 fb...@a1poweruser.com
wrote:


I want to compare 2 different directory trees to each other to
locate any differences in directories and files contained there in.

Any suggestions?


mtree(8)



 From the man page I don't see how to code mtree to compare 2
different directory trees against each other.


you can compare a directory tree which is rooted in your current
directory and a specified one.

From man:

The mtree utility compares the file hierarchy rooted in the current
directory against a specification read from the standard input.
Messages are written to the standard output for any files whose
characteristics do not match the specifications, or which are missing
from either the file hierarchy or the specification.

Erich




So
cd dir-tree1
mtree -p dir-tree2

Do I understand you correctly?


ended up trying
cd dir-tree1
mtree -c | mtree -p dir-tree2

Now this seems like it worked, except every thing was flagged for 
non-matching modification time. How do I tell it to not check 
modification time?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: utility to compare 2 dir trees

2012-12-31 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Mon Dec 31 19:26:37 2012
 Date: Mon, 31 Dec 2012 20:23:33 -0500
 From: Fbsd8 fb...@a1poweruser.com
 To: FreeBSD Questions freebsd-questions@freebsd.org
 Subject: utility to compare  2 dir trees

 I want to compare 2 different directory trees to each other to locate 
 any differences in directories and files contained there in.

 Any suggestions?

'man diff'



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: utility to compare 2 dir trees

2012-12-31 Thread Matthew Seaman
On 01/01/2013 01:23, Fbsd8 wrote:
 I want to compare 2 different directory trees to each other to locate
 any differences in directories and files contained there in.
 
 Any suggestions?

diff -ru directory1 directory2

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature