Don't log in multiple times for sim sync

Issue #1013 closed
Erik Schnetter created an issue

Don't log in twice for "sim sync". This is necessary only to create the sourcebasedir if it does not yet exist, which is necessary only very rarely. Instead, try rsync directly, and if it fails, examine the error message and create the directory if necessary.

This makes simfactory much nicer to use when one cannot setup an ssh agent, i.e. when one has to type in the password or use a token eavery time.

Keyword:

Comments (5)

  1. Erik Schnetter reporter
    • changed status to open
    • removed comment

    The attached patch first calls rsync, and if it fails, calls mkdir, then rsync again.

  2. Barry Wardell
    • removed comment

    This looks good to me. I quickly tested the patch and it seems to work fine. An added bonus is that syncing is now a second or so faster! Please commit.

  3. Log in to comment