[SOLVED] merge 2 directories without deleting or overwriting files with same name
by lleb from LinuxQuestions.org on (#5JSZ0)
Normally I would just rysnc the data around, but i have a bunch of files from school that are on my laptop and my workstation. I'd like to merge the files, many with the same name, but not the same file. they are named by class & date.
example:
/path/to/class/call.08.06.2021.pdf
Ill have that file on both systems, but they may not be a true duplicate file. rsync will treat them as the same file and use the newer file and overwrite, potentially losing data, the older of the two files.
After I have everything merged into a single location, I will spend the man hours manually removing duplicate files.
I do not want to lose the data from either end.
Thank you
example:
/path/to/class/call.08.06.2021.pdf
Ill have that file on both systems, but they may not be a true duplicate file. rsync will treat them as the same file and use the newer file and overwrite, potentially losing data, the older of the two files.
After I have everything merged into a single location, I will spend the man hours manually removing duplicate files.
I do not want to lose the data from either end.
Thank you