Skip to main content
Solved

How can I programmatically download a backup from FME Server?

  • January 23, 2017
  • 4 replies
  • 43 views

fmelizard
Safer
Forum|alt.badge.img+21

Best answer by fmelizard

Here is a workspace that uses the REST API to download a backup from FME Server

backup.fmw

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

fmelizard
Safer
Forum|alt.badge.img+21
  • Author
  • Safer
  • January 23, 2017

You can use the REST API call: /migration/commands/backup/download

https://docs.safe.com/fme/html/FME_REST/v2/apidoc/index.html#!/migration/syncBackup_post_0

---

Here are the settings to use in Postman:


fmelizard
Safer
Forum|alt.badge.img+21
  • Author
  • Safer
  • Best Answer
  • January 23, 2017

Here is a workspace that uses the REST API to download a backup from FME Server

backup.fmw


fmelizard
Safer
Forum|alt.badge.img+21
  • Author
  • Safer
  • January 25, 2017

Here is a cURL command that I exported from Postman:

curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -H "Accept: application/octet-stream" -H "Cache-Control: no-cache" -H "Postman-Token: b0e3b38b-8f9c-0900-8b51-5a4854e7cfc9" -d '' "http://ap-fme32bit/fmerest/v2/migration/commands/backup/download?accept=contents&token;=45228cf4eae10fc585917c61d7bf2be721783878&exportPackageName;=ServerConfigPackage.fsconfig"

Note: I haven't tested it in cURL.


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • January 25, 2017

And if you just want to save the backup file in the resources area:

/migration/commands/backup/resource