Retrieve data via command line

English Support for Syncovery on Windows.
Post Reply
rvandres
Posts: 4
Joined: Thu Jul 02, 2020 7:12 am

Retrieve data via command line

Post by rvandres »

Hello everyone,

is there a way to retrieve data from syncovery via the command line?

What I am attempting is to change the left-hand side path by mapping the right-hand side with the corresponding profile name that I have

I know we have the below options:

ADD
RUN
DELETE
CHANGE
RENAME

But, is there any type of GET function?

Best Regards

tobias
Posts: 1605
Joined: Tue Mar 31, 2020 7:37 pm

Re: Retrieve data via command line

Post by tobias »

Hello,
you can use

Code: Select all

SyncoveryCL SHOW "Profile Name"
or

Code: Select all

SyncoveryCL /EXPORTONEXML="Profile Name"

rvandres
Posts: 4
Joined: Thu Jul 02, 2020 7:12 am

Re: Retrieve data via command line

Post by rvandres »

Hi Tobias,

Thank you.

Is there a way to set up via CL the Advance Settings? For example Comparison > More tab > Always Copy, even if timestamp unchanged.

BR
Andres

tobias
Posts: 1605
Joined: Tue Mar 31, 2020 7:37 pm

Re: Retrieve data via command line

Post by tobias »

Hello,
yes, see the settings dictionary at the end of this page:
https://www.syncovery.com/command-line/

But usually you would just create such a profile using the Syncovery GUI on Windows and take a look at the command line representation on the settings, which is available via the Information tab sheet on the profile dialog box on Windows (or Mac).

On Linux, you could export profiles as XML and see the settings there.

rvandres
Posts: 4
Joined: Thu Jul 02, 2020 7:12 am

Re: Retrieve data via command line

Post by rvandres »

Hi Tobias,

Thank you very much it seems I almost done with what I want to achieve.

I think this might be the last question, is there an option to get all profiles at once using the command line.

Using the INI file works well enough, but actually not sure if its a bad idea to do it this way.

Then checking it was found that 'C:\Program Files\Syncovery\SyncoveryCL.exe' /LIST may work. But we are seeing different behaviors depending of the version that is being used. For example, here we can see the profile name:

1:29:54 PM SyncoveryCL v8.16e
1:29:54 PM Initializing
1:29:54 PM Log folder: C:\ProgramData\Syncovery\Logs
1:29:54 PM Configuration File: C:\ProgramData\Syncovery\Syncovery.ini
1:29:54 PM Licensed to: ****
1:29:54 PM PROFILE LIST
1:29:54 PM ------------
1:29:54 PM PROFILENAME
LEFTPATH --> RIGHTPATH
1:29:54 PM Last Run: 9/17/2020 12:00:01 AM (Nothing to be done)
1:29:54 PM Schedule: Run Daily At Tomorrow, 12:00:00 AM


But here is not displayed:

3:33:02 PM SyncoveryCL v7.98
3:33:02 PM Initializing
LEFTPATH --> RIGHTPATH

Not sure if there is a better way.

Best Regards,
Andres

tobias
Posts: 1605
Joined: Tue Mar 31, 2020 7:37 pm

Re: Retrieve data via command line

Post by tobias »

Hello,
the best way is to use the command line parameter

/EXPORTALLXML=xmlfilename.xml

rvandres
Posts: 4
Joined: Thu Jul 02, 2020 7:12 am

Re: Retrieve data via command line

Post by rvandres »

Hi Tobias,

Seems like we have the same behavior using this other method when using different versions:

11:07:44 PM SyncoveryCL v7.98
11:07:44 PM Initializing
<?xml version="1.0" encoding="UTF-8" ?>
<Profiles>
<ProgramInfo>
<Name>Syncovery</Name>
<Version>7.98</Version>
<Build>600</Build>
</ProgramInfo>
<Formats>
<Date>M/d/yyyy</Date>
<Time>h:mm:ss AMPM</Time>
<ShortTime>h:mm AMPM</ShortTime>
<DateSeparator>/</DateSeparator>
<TimeSeparator>:</TimeSeparator>
</Formats>
</Profiles>

For v8.16e it does display the profiles names after <Formats> element

<Profiles>
<ProgramInfo>
<Name>Syncovery</Name>
<Version>8.16e</Version>
<Build>137</Build>
</ProgramInfo>
<Formats>
<Date>M/d/yyyy</Date>
<Time>h:mm:ss AMPM</Time>
<ShortTime>h:mm AMPM</ShortTime>
<DateSeparator>/</DateSeparator>
<TimeSeparator>:</TimeSeparator>
</Formats>
<Profile Name="Test">
<General>

Is this expected? Would it be just a missing setting on the application or is an update the only way to overcome this?

Best Regards,
Andres

tobias
Posts: 1605
Joined: Tue Mar 31, 2020 7:37 pm

Re: Retrieve data via command line

Post by tobias »

Hello,
Syncovery 7 for Linux is obsolete and no longer recommended for any use.

All Syncovery 7 for Linux licenses work with Syncovery 8 too. If you have a problem with a license code, please contact support@syncovery.com.

If you discover bugs in Syncovery 7, the only solution is to update Syncovery.

Post Reply