rsync files from subfolders on source to root of a folder on destination
j at mesrobertson.com
Tue Apr 24 23:11:12 MDT 2012
> I think hard-links are the easiest solution.
> mkdir hardlinks
> find Music -type f -print0 | xargs -0 cp -al -t hardlinks
> (You get a warning from cp about doubles, if any)
> Then you can rsync the 'hardlinks'-directory as usual.
> When you want to update you should just 'rm -rf hardlinks' then execute
> the find again. That way even deletions work as expected (Or just put it
> in a script).
> Bis denn
Thanks for the suggestions. In the end I used this example and will
just write a shell script around it to update the hard links when I
Really appreciate it.
More information about the rsync