Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ian 5 posts 104 karma points
    Jan 10, 2023 @ 04:49
    Ian
    0

    Trigger import sync?

    (Related post about uSync Complete Publisher)

    I would like to run a regular sync job between servers, eg nightly staging -> prod. I understand that uSync can export on save. I can set up a nightly sync job to copy the files. The question is, how do you force the target server to import? I only see an option to import on startup.

    Can you trigger an import operation without having to restart the site?

    I am using uSync Complete/Umbraco v10.

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Jan 10, 2023 @ 09:59
    Kevin Jump
    100

    Hi Ian,

    you can trigger imports with the uSync Command line.

    https://github.com/Jumoo/uSync.CommandLine

    you can use this in conjunction with your nightly job to sync the files, once the files have been copied you could trigger the import from the folder.

    At the moment this works for the files on disk, we are working on a version which will allow you to trigger an import from one server to another (just like a usync publisher push/pull) - due soon.

  • Johan Runsten 38 posts 276 karma points c-trib
    Jan 26, 2023 @ 10:10
    Johan Runsten
    0

    Hi Kevin,

    What's the difference between uSync.CommandLine and uSyncTriggers in this regard? As far as I can see, both packages lets you remotely trigger an import/export.

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Jan 26, 2023 @ 18:08
    Kevin Jump
    0

    Hi Johan,

    Versions really, uSync.CommandLine is a later, it does more than triggers (which is why it's a new package) in that its more generic can be extended and has authentication built in in a slightly different way.

    triggers is more uSync only, and for earlier versions if you are running Umbraco 10+ use the command line package

  • Johan Runsten 38 posts 276 karma points c-trib
    Jan 27, 2023 @ 07:18
    Johan Runsten
    0

    Thanks for the clarification

Please Sign in or register to post replies

Write your reply to:

Draft