Author Topic: Comparing and merging files from different folders  (Read 418 times)

Offline aguila

  • Hero Member
  • *****
  • Posts: 1210
  • soaring high = no Windows here :-D
Comparing and merging files from different folders
« on: December 21, 2010, 06:19:50 AM »
Hi all,

I have surged the forum, Google, and Synaptic but not found a solution to this:

Over some time I have backuped one and the same folder several times, so I should have a lots of duplicates on my "backup" drive. Now, I'ld like to get more serious about backing up using a backup software (BackinTime, DejaDup, or LuckyBackup, not sure yet).

Therefore, I'ld first like to eliminate all the duplicates and sync with my current /home folder to be sure I won't lose anything that is only on the "backup" drive but not in my /home.

Could you think of simple solution? Is there "an app for that" ;) :D?

Or should I opt for a CL solution? Which command could find duplicates?

Thanks for any answers.

Aguila
All that is is good. PCLinuxOS is.

Thinkpad X61 Tablet, Core2Duo 1.66 MHz, 4 GB Ram, Intel onboard Graphics, Plextor PX-256M3 256 GB SSD; Thinkpad R61i, Core2Duo 1.66 MHz, 2 GB Ram, Intel onboard graphics, 120 GB HDD

Offline rogaven

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 559
  • be patient, I'm German
Re: Comparing and merging files from different folders
« Reply #1 on: December 21, 2010, 02:00:00 PM »
Quote
FSlint - a utility to find and clean "lint" on a filesystem
FSlint is a utility to find redundant disk usage like duplicate files
for example. It can be used to reclaim disk space and fix other problems
like file naming issues and bad symlinks etc. It includes a GTK+ GUI as
well as a command line interface.

do you think that?
Nothing is perfect, not even my english
3.4.25-pclos1.pae.bfs - KDE: 4.10.1 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 8 GB - GeForce 8400 GS

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15268
  • ┌∩┐(◕_◕)┌∩┐
Re: Comparing and merging files from different folders
« Reply #2 on: December 21, 2010, 02:07:47 PM »
fdupes is also in the repos maybe worth a looksee....

http://linux.die.net/man/1/fdupes
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline aguila

  • Hero Member
  • *****
  • Posts: 1210
  • soaring high = no Windows here :-D
Re: Comparing and merging files from different folders
« Reply #3 on: December 21, 2010, 03:01:34 PM »
Found fdupes in the repos and running it on the external hard disk.

Will see what the output is and take it from there.

I'll also check FSlint, just found a lenghty german article about it. I guess it might just be what I'm looking for.

Thanks for your replies.
All that is is good. PCLinuxOS is.

Thinkpad X61 Tablet, Core2Duo 1.66 MHz, 4 GB Ram, Intel onboard Graphics, Plextor PX-256M3 256 GB SSD; Thinkpad R61i, Core2Duo 1.66 MHz, 2 GB Ram, Intel onboard graphics, 120 GB HDD

Offline greywolf

  • Full Member
  • ***
  • Posts: 145
Re: Comparing and merging files from different folders
« Reply #4 on: December 21, 2010, 06:55:08 PM »
Unison is the best sync tool I have used for this purpose. It is in the repos.

unison        - Unison is a file-synchronization tool for Unix and Windows

cheers,
greywolf.

Life isn't about waiting for the storm to pass...
it's about learning to dance in the rain.