Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Comparing 2 directories

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
GeordieJedi
LXF regular


Joined: Thu Jun 14, 2007 11:36 pm
Posts: 294
Location: North East England

PostPosted: Sat Feb 04, 2012 3:44 pm    Post subject: Comparing 2 directories Reply with quote

Hi all.

I have my music collection on two hard drives (1 internal, my main master copy).
And the 2nd is on an external drive.

Now the problem is, that they are now out of sync, and I'd like to make the external drive an exact replica of the 1st internal drive.

Is there an easy way to run a comparison between the two drives?
(Possibly a GUI version)

What I'd like to achieve is -

1. To compare both directories and find the differences between them.
(If there aren't too many differences, I can manually copy across the requisite files)

2. From then onwards, I'd like to keep both dirs always synchronised.
(Something like Unison ?)


Thanks in advance for any help.
Back to top
View user's profile Send private message
Bruno
LXF regular


Joined: Tue Sep 18, 2007 7:07 pm
Posts: 139
Location: Cambridgeshire, UK

PostPosted: Sat Feb 04, 2012 5:02 pm    Post subject: Reply with quote

Unison is exactly what you need, it works like a charm. The first run can take a while but subsequent runs are very quick. If you are a subscriber, there are a few articles in back issues of the mag covering Unison.
Back to top
View user's profile Send private message
GeordieJedi
LXF regular


Joined: Thu Jun 14, 2007 11:36 pm
Posts: 294
Location: North East England

PostPosted: Mon Feb 06, 2012 11:31 pm    Post subject: Reply with quote

Cheers Bruno.

I'll check out Unison
Back to top
View user's profile Send private message
heiowge
LXF regular


Joined: Wed Feb 27, 2008 8:21 pm
Posts: 1795
Location: Cheshire, UK

PostPosted: Tue Feb 07, 2012 8:13 am    Post subject: Reply with quote

You could do what I do. Delete the second drive's collection, and write the other drive to it! Laughing
_________________
AMD PHENOM II X6, 14 GB DDR3, 500 GB hd, 1GB nVidia card, running Linux Mint 14 KDE / Win 7. Damn thing keeps breaking.

eeepc 1015PX, 1.66 Ghz Intel atom processor, 2 GB DDR3, 320 GB hd running Mint 14 MATE. Running great.
Back to top
View user's profile Send private message
Bruno
LXF regular


Joined: Tue Sep 18, 2007 7:07 pm
Posts: 139
Location: Cambridgeshire, UK

PostPosted: Tue Feb 07, 2012 4:26 pm    Post subject: Reply with quote

That would work too, but it is a rather brute force method. On the second and subsequent synchronisation, Unison will only copy across the files it detects that are changed or new, which for a large collection is much more efficient. It's also convenient if each collection is independently modified (external drive is not simply a back up). You will wonder what you did before Unison after you start using it.
Back to top
View user's profile Send private message
GeordieJedi
LXF regular


Joined: Thu Jun 14, 2007 11:36 pm
Posts: 294
Location: North East England

PostPosted: Tue Feb 07, 2012 7:33 pm    Post subject: Reply with quote

Cheers Heiowge

That was my first thought. But I thought I might try and learn something instead.
If I tried to compare the directories, and then copy across the missing/different files.

I think i'll wipe the external drive. Copy the main dir over, and once they're both exactly the same
I'll then look at unison.
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast