Skip to main content
POST
/
backups
/
upload
Загрузить и восстановить из файла резервной копии
curl --request POST \
  --url http://localhost:8080/backups/upload \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "success": true,
  "message": "<string>",
  "tables_restored": 123,
  "records_restored": 123
}

Query Parameters

clear_existing
boolean
default:false

Очистить существующие данные

Body

multipart/form-data
file
file
required

Файл резервной копии (.tar.gz, .json, .json.gz)

Response

Successful Response

success
boolean
required
message
string
required
tables_restored
integer | null
records_restored
integer | null