Re: diff or deduplicate two volumes with different folder structures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 19 Sep 2016 17:23:39 -0600
Chris Murphy <lists@xxxxxxxxxxxxxxxxx> wrote:

> Drives A and B have many overlapping files but I want to find out what
> files don't exist on each. Thwarting this is directory structure
> differs between the two drives, and I'm fairly certain some of the
> file names differ on the two drives also.
> 
> Therefore I need something hash based. I started with this:
> 
> 
> $ find /brickA -type f -exec md5sum "{}" + > brickA.txt
> $ find /brickB -type f -exec md5sum "{}" + > brickB.txt
> 
> What I need next is to:
> 
> Make a copy of the files, brickAcopy.txt and brickBcopy.txt
> Loop: Extract each md5sum in brickA.txt, grep for it in brickAcopy.txt
> and brickBcopy.txt, and if it's found in both, delete the line in both
> files.
> 
> What remains in each file are paths to files that don't exist on the
> other drive. This must be a solved problem, so I'm open to alternative
> approaches.

> Ideas?
 
Here's some linux utilities a quick search turned up.
http://www.howtogeek.com/201140/how-to-find-and-remove-duplicate-files-on-linux/
http://askubuntu.com/questions/3865/how-to-find-and-delete-duplicate-files

At least fslint and fdupes are in the fedora repositories, maybe others.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux