API Backups - maxgrafik/violetCMS GitHub Wiki

Data structure

[
    {
        date: <RFC2822 date>,
        size: <string>, (human readable, e.g. *** KB)
        name: <string>, (filename)
        url: <url>
    },
    ...
]

The url field is an url to the 2nd accessible API endpoint /violet/download.php and contains a nonce which is valid for 5 minutes.

GET

q=backups Gets a list of stored backups.

POST

q=backups&action=create Creates a backup of the whole website in /violet/backups.

q=backups&action=delete&name=<filename> Deletes the backup with the given file name.

⚠️ **GitHub.com Fallback** ⚠️