Back-ups

Overview of all back-ups

GET https://cronly.app/api/backups

Headers

NameTypeDescription

Authorization*

String

Bearer: API token

[
    {
        "id": 1,
        "username": "username_on_server",
        "company_id": 1,
        "server_id": 1,
        "deleted_at": null,
        "created_at": "2024-03-04T18:19:56.000000Z",
        "updated_at": "2024-03-04T18:19:56.000000Z"
    }
]

Details of back-up

GET https://cronly.app/api/backups/{server_id}/{username}

Query Parameters

NameTypeDescription

server_id*

String

The identifier of the server you want to view

username

String

The username on the server whose back-up you want to view

Headers

NameTypeDescription

Authorization*

String

Bearer: API token

{
    "id": 1,
    "username": "username",
    "company_id": 1,
    "server_id": "server_identifier",
    "deleted_at": null,
    "created_at": "2024-03-04T18:19:56.000000Z",
    "updated_at": "2024-03-04T18:19:56.000000Z"
}

Create a new back-up

POST https://cronly.app/api/backups

The source of this request must match the IP Address configured in the corresponding Server. This will either create an entire new back-up if there is no server with a matching username, or it will create a new snapshot of the back-up.

Headers

NameTypeDescription

Authorization*

String

Bearer: API token

Request Body

NameTypeDescription

username*

String

The username on the server whose back-up you want to view

server_id*

String

The identifier of the server you want to view

file_content

String

The content of the crontab file

{
    "id": 1,
    "username": "username_on_server",
    "company_id": 1,
    "server_id": "server_identifier",
    "deleted_at": null,
    "created_at": "2024-03-04T18:19:56.000000Z",
    "updated_at": "2024-03-04T18:19:56.000000Z"
}

Delete a back-up

DELETE https://cronly.app/api/backups/{server_id}/{username}

Query Parameters

NameTypeDescription

server_id*

String

The identifier of the server whose back-up you want to delete

username

String

The Username whose back-up you want to delete

Headers

NameTypeDescription

Authorization*

String

Bearer: API token

{
    "success": "Back-up deleted"
}

Last updated