Skip to main content

Backups

You can get a JSON array of all the top level backup folders in your system and retrieve a zipped archive of any folder.

List All Backups

List all the backup folders in the Backup Directories

GET /api/backups

Returns an array of folders

    
{
"Name": "FMS_2021-09-16_0000",
"IsDirectory": true,
"Path": "FMS_2021-09-16_0000",
"ModTime": "2021-09-16T04:00:00.036Z"
},
{
"Name": "FMS_2021-09-17_0000",
"IsDirectory": true,
"Path": "FMS_2021-09-17_0000",
"ModTime": "2021-09-17T04:00:00.263Z"
},
...
{
"Name": "Preserved",
"IsDirectory": true,
"Path": "Preserved",
"ModTime": "2021-03-05T23:30:50.691Z"
},
{
"Name": "_Otto_",
"IsDirectory": true,
"Path": "_Otto_",
"ModTime": "2021-04-10T20:24:33.524Z"
}
]

Download a backup

This is a two-step process. In the first step, you tell Otto which backup folder you are interested in. Otto will give you back a URL to the archive. Next, you use the URL to retrieve the archive.

Request a backup archive

POST /api/backups

Headers:

  • Content-Type: application JSON

Body:

{"folder": "backupfolder"}

Response:

Returns a redirect URL that you can use to get the zip. The URL expires in 1 hour.

    "redirectURL": "/api/download/fyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7ImZvbGRlciI6IlByZXNlcnZlZCIsInR5cGUiOiJiYWNrdXAifSwiaWF0IjoxNjMyMjQ2MDA4LCJleHAiOjE2MzIyNDk2MDh9.ihJe7GU5zsdtbe4Uu18EdGKV552pgls2gNSK4wXKEIA"
}

Download the archive

Get \<url returned by the above request>