How can I move files up a directory where there might be hundreds or thousands of files in the directory, and you might not be sure about whether there are dupes in ..
. What method would you use?
How to handle dupes will vary, sometimes we'll overwrite, sometimes we need to be safer. IO can be important because these are production servers. But given quantity a prompt for non duplicate files isn't an option. Preservation of permissions, and timestamps, etc, is important. We usually won't know what the data is.
Oh and it using mv
isn't required, rsync
, cp
solutions welcome.
note: we're running CentOS 5.5 so let me know if it won't work there due to it being a more recent... feature
mv
and whether we care about preservation in the case of... and whether we've already made a backup. This question is fairly open. I'm just looking for good options, and maybe a comment about whether or not it can bite you and how.mv * ../
ormv -i * ../
?