- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Comparing two directories
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2009 09:58 AM
тАО05-29-2009 09:58 AM
Comparing two directories
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2009 10:51 AM
тАО05-29-2009 10:51 AM
Re: Comparing two directories
What kind(s) of access do you have to the
"remote" system?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2009 11:56 AM
тАО05-29-2009 11:56 AM
Re: Comparing two directories
A better definition of what you want is needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2009 12:00 PM
тАО05-29-2009 12:00 PM
Re: Comparing two directories
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2009 01:58 PM
тАО05-29-2009 01:58 PM
Re: Comparing two directories
The same answer to your same question in HP-UX applies: See the 'diff' and 'comm' manpages.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2009 03:33 PM
тАО05-29-2009 03:33 PM
Re: Comparing two directories
You could create two temp files, first a listing of the local dir and second a listing of the remote dir, and then compare the two suing used 'diff'.
Or if you only want to show what file(s) are missing, perhaps just use 'rsync' with the -n, --dry-run to show what would have been transferred.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2009 09:11 PM
тАО05-29-2009 09:11 PM
Re: Comparing two directories
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2009 06:59 AM
тАО05-30-2009 06:59 AM
Re: Comparing two directories
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2009 08:11 AM
тАО05-30-2009 08:11 AM
Re: Comparing two directories
Its primary job is copying files between systems.
But you can run it as an itemized dry run.
That will just find and report the necessary copying and deletions to make one directory match another one.
It will compare file's checksums and can be asked to compare permissions.
$ rsync -a --dry-run -i -p --del trial/ sys2:trial
.d..t...... D1/
*deleting D1/F2
Be very careful to use --dry-run unless you actually want to modify one directory to match the other.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2009 12:44 PM
тАО05-30-2009 12:44 PM
Re: Comparing two directories
It might be wise to include your commands into a ssh command.