Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Call upon Server to run a backup from Pro

Featured Replies

Is it possible to have FM Server run a backup from a client script?

This awesome thread seems to indicate that schedules can NOT be run on the Server from Pro (though scripts can). That would have been a nice solution. I'm wondering if there's another way to do it.

I don't want to run a schedule every 5 minutes, checking a flag field, I need the backup to happen "on demand". I'd prefer a solution that was cross-platform or maybe two solutions one for Jobs and one for Gates.

This is for FMSA 12 on OS X Server and FMS 12 on Windows 2008.

Thanks,

DJ

You could script the backup via command line interface, then call that OS-level script from a FileMaker ScriptMaster script.

...at least, I think you can. I have written an OS-level script that runs a backup on the server, but I haven't tried calling that script from a ScriptMaster script. I don't see why you couldn't though.

Well, you could use AppleScript on a Mac and VB script on Windows to run a shell script that connects to the sever via SSH to run the backup command.

  • Author

Thanks for the tips...just to make things even more complicated, we will probably need to also run this on FM Go, so no plugins and Send Event/Applescript script steps.

Picky, aren't I?

hi David

I think ScriptMaster is server side compatible, which means that you can run it with FMGo.

Someone from CNS plugins wrote a profound article on how to do this. In short it has all to do with the fact that unstored calcs are evaluated on the server in certain conditions when you perform a find on it.

So if you place your plugin call in that unstored calc and perform a find on it, the plugin call will be executed server side.

Andries

[edit]here is the article: http://jaketraynham.posterous.com/filemaker-go-cant-use-plug-ins-or-can-it[/edit]

I was thinking of using a "Send Event" step on a server-side script to run the os-level script, but I hadn't realized that the "Send Event" step is not compatible with a script run on the Server.

So, you can still use the XML web publishing URL to trigger a script to run on the server, but the server would need a plug-in to run an os-level script. As andries mentioned, ScriptMaster can do this. BaseElements plug-in might also be able to: https://github.com/nickorr/BaseElements-Plugin/wiki/Functions#wiki-BE_ExecuteShellCommand

  • Author

OK so it looks like my options so far are:

1) Install the ScriptMaster or BaseElements plugin on the server.

2) Write a shell script to back up the file.

then

a.3 ) Write a FileMaker script to be run on the server that will leverage the plugin to call the shell script

a.4) Write a Filemaker script that will run on the client to use Insert from URL[] or Set Web Viewer[] to call the server script in #3 via XML.

or

b.3) Create an unstored calculation field that calls the plugin to call the shell script

b.4)Write a FM script that performs a find on that unstored calc to force it to resolve on the host

I'll take a crack at it.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.