I have 2 folders let's call it X and Y, inside them I have several subfolders. I need to merge the content of both, keeping all files and overwriting the duplicates in order to have just Y, with the whole content, no duplicates and without losing any file. I'd like to avoid complex scripts or using cp as I read in many other questions since I want to keep just one folder
my actual tree is
rita/
└── X/
└── folder1
└── folder2
└── foo.txt
└── Y/
└── folder1
└── folderA
└── bar.txt
└── foo.txt
is
mv /X/ /Y/
the right command to use being in rita folder?
i want to obtain this
rita/
└── Y/
└── folder1
└── folder2
└── folderA
└── bar.txt
└── foo.txt
or eventually what should I do to get this?
rita/
└── Y/
└── folder1
└── folder1 copy
└── folder2
└── folderA
└── bar.txt
└── foo.txt
└── foo copy.txt
thanks