On Thursday, February 26, 2026 5:22:54 PM CET, Greg Wooledge wrote:
Or are you saying that the /back/rhk directory doesn't exist yet, and
you want cp or rsync to create it?  Let's assume that one.

    cd /
    rsync -a rhk /back/

That's what I would use to create the /back/rhk directory during the copy.
The obvious alternative would be:

    mkdir /back/rhk
    cd /rhk
    rsync -a . /back/rhk/


i'm curiuous: why use cd/mkdir at all?

afaik both, cp and rsync work just fine without them:

       rsync -a /rhk /back/

copies /rhk into /back/ and creates it if necessary. as well as

       cp -a /rhk /back/

does. but both commands work just fine without cd and mkdir...

what do i miss?

greetings...

Reply via email to