Merge directory trees without copy&removing
Basically, as the title says, I want to *move" the whole directory
structure into a not empty folder without copying it's contents into the
destination and after that deleting the source. The reason - the whole
directory tree contains only hard links, so whenever they are copied, new
inodes are created, which is not something I'd like to have. And oh, linux
here.
Btw, it might be of a help for those with small disk space.
Thanks :) .
So far I tried to rsync -rH, but it created new inodes again. And cp -rl
--preserve=links didn't... Now I'll have to write a small zenity gui for
it, cause I've got a lot of directories to move. This is a workaround,
though, as the question is saying not to copy&paste. Not sure if I have to
close this question.
No comments:
Post a Comment