Skip to main content
Solved

How can I programmatically download a backup from FME Server?


fmelizard
Safer
Forum|alt.badge.img+18

Best answer by fmelizard

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

backup.fmw

View original
Did this help you find an answer to your question?

4 replies

fmelizard
Safer
Forum|alt.badge.img+18
  • 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+18
  • 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+18
  • 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+17
  • Supporter
  • January 25, 2017

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

/migration/commands/backup/resource


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings