AnsweredAssumed Answered

PSOS command line to server - how?

Question asked by fhcmsoftware on Oct 11, 2018
Latest reply on Oct 11, 2018 by fhcmsoftware

Trying to run a command for fmsadmin (FMS17) on the server, triggered by a script in the solution I'm working on.

It's a backup instruction:

 

cmd /c  fmsadmin -u username -p mypassword backup myfilename.fmp12 -k 0 -d "filewin:/C:/Program Files/FileMaker/FileMaker Server/Data/Backups/"

 

If I remote to the server, open command prompt and type everything starting with fmsadmin it works.

 

I suspect I'm not understanding how to use PSOS.  Here's what I've tried:

 

Create a script called SaveBackup. 

That script contains one step.  First I tried Send event, with the string above (including cmd /c) in the text.  Then I read Send Event may not work on server, so I switched to BE_ExecuteSystemCOmmand, using the same string).

 

Create a script called SaveBackupServer

One step - Perform Script On Server, pointing to script SaveBackup.

 

I tried just running SaveBackupServer like that.  No backup created.

 

Then I realized I needed to upload script to server first.  So I went to script schedules in admin panel, created a script based on SaveBackup in the hosted solution, left schedule disabled.

 

Tried running it from Admin Panel using Run Now as well as running it from script SaveBackupServer  from client- no backup is created.

 

Base Elements plugin is loaded in Server and in the client.

 

What am I missing?

Outcomes