On 26.09.2012 23:45, Carlos Morel Gómez La Roque wrote: > Hello, people. Sorry but I found that when you do rsync to a not created > destination it makes a mkdir in order to accomplish the work. The problem > comes when there are some uncreated parents in the destination directories. > That's just because in the builtin mkdir isn't specified the -p option. > Thus, the problem is solved just adding the -p option to the built in mkdir > in the code you wrote.
As far as i remember this same topic came up a few years ago. In short: That's intentional and not a bug. Otherwise it's too easy to rsync to an unintended destination when you fat-fingered the destination. And it would be a deviation from established behaviour and only acceptable with an explicit command-line-option so that the default-behaviour of rsync would be unchanged. Bis denn -- Real Programmers consider "what you see is what you get" to be just as bad a concept in Text Editors as it is in women. No, the Real Programmer wants a "you asked for it, you got it" text editor -- complicated, cryptic, powerful, unforgiving, dangerous. -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
