LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 12-02-2009, 01:26 PM   #1
kilee
LQ Newbie
 
Registered: Nov 2009
Posts: 21

Rep: Reputation: 0
Merging folders


Hi friends.

I'm looking for an application that can do this:

I have several bakups and I "merged" them to a large hdd with dirsync pro flawlessly ( a fantastic software).
But I noticed that I have several folders and files repeated within subfolders. For example.

In the main folder I have:

backups/folder"A"/file 1..n

then

backups/folder"A"/folder"b"/folder"A" (again and almost all its files)

Then

backups/folder"N"/folder"Nb"/folder"A" (again and almost all its files)

And this happens several times. I thing 2/3 of my backups are repeated folders.

So I'd like to find all folders with the same name and merge them into a single "folder "A".."N".

If this is not possible is there a way to find all documents,and put them into a folder, all mp3 into another folders etc??

Clone removers wont works as they hang due to the amount of files..


Thanks for your Advice!!

Im using ubuntu 9.1 and
 
Old 12-02-2009, 02:00 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
You could probably use fdupes, find, and some bash scripting to troll through the directories and create one complete backup set. You could probably even do it by filetype.
 
Old 12-06-2009, 08:05 PM   #3
kilee
LQ Newbie
 
Registered: Nov 2009
Posts: 21

Original Poster
Rep: Reputation: 0
Solved

Thanks for the fdupes advice.
I started searching a lot better and I foud this:

http://sourceforge.net/projects/dupmerge/

I solved my problem with this program. It did the job fast and accurately.

Hope this helps someone else.
 
  


Reply

Tags
folders, merge


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script to create folders including making recursive folders.... linux-bandit Linux - Software 8 11-28-2009 02:50 AM
find -exec command to recursively delete files and folders in folders with X name Joan Murt Linux - Newbie 2 07-08-2009 05:35 PM
Merging a one string to various others Juan Pablo Programming 4 07-09-2008 11:31 PM
change permissions of all folders and sub folders cad Linux - General 3 01-28-2007 11:21 AM
Samba can create new files and folders but access denied in any new folders k.king Linux - Networking 2 01-15-2006 07:14 AM


All times are GMT -5. The time now is 05:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration