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?
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.
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.
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
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.
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.
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.
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
Thanks for the clarification
is working on a reply...