Page 1 of 1

Automating Export/Import?

Posted: Tue Mar 07, 2023 9:39 pm
by ReklessSVT
Is there a way to automate, using code, exporting/disabling a profile and importing/enabling the same profile in to another instance of Syncovery? Looking to slowly migrate profiles off an active Syncovery instance to a new server. Would love to find a way to automate this so that we can export certain profiles and disable them, transfer the backup, then import the profiles and enable them on the new server.

Re: Automating Export/Import?

Posted: Wed Mar 08, 2023 1:31 pm
by tobias
Hello,
yes, you can use the command line tool SyncoveryCL.exe and invoke it with the appropriate command lines.

Such as:

Code: Select all

SyncoveryCL.exe /EXPORTONEXML="Profile Name"

Code: Select all

SyncoveryCL.exe CHANGE "Profile Name" /Disabled

Code: Select all

SyncoveryCL.exe /IMPORT="Profile Name.xml"
See also:
https://www.syncovery.com/command-line/

Re: Automating Export/Import?

Posted: Wed Mar 08, 2023 2:23 pm
by ReklessSVT
Thanks tobias! Do you happen to know if there's a way to get a list of profiles with a common name IE "Customer1 profile name" and get all profiles with Customer1 in it so they can be each exported/disabled or would I have to do something like exportallXML and then filter through the XML output?

Re: Automating Export/Import?

Posted: Wed Mar 08, 2023 2:27 pm
by tobias
Hello,
you could manually select the profiles in the Syncovery GUI and then export the selected profiles to CSV and work with that.