I have a removable hard-drive where I keep a backup of most of my files, and while I can solve some little issue I also keep a copy of some directories in both Ubuntu and Windows partitions. After several installations and change of computers some of these files have been accumulating and, many times, they get duplicated when I move some of them in one system and not in the other.
Is there any tool available in Ubuntu (or elsewhere) that will allow me to make changes in the directories in one system and then replicate them in the other systems?
I mean, after I rename files, move them from one subdirectory to another, or add or correct metadata in a media file (thus changing the hashes), in one of the file systems, the changes can be replicated to the other copies.
One possible method is
- copy one filesystem (source) into the other (destination);
- find duplicates in destination;
- manually or programmaticly remove duplicates in destination;
- erase the source filesystem and copy the files and structure from the destination file system.
This procedure would be very time consuming with a large file system (hundreds of thousands of files expanding to some 300~400 GB), and finding duplicates cannot be done automatically if one of the copies have been modified (v.g. because metadata has been corrected, or a minor edit was done in a document)
Thank you in advance.