Backing Up Caprover

Caprover Backup

When running the backup command on Caprover Settings, it creates a .tar file.

This file has 2 important files:

It also contains the files in /data/nginx-shared that have the SSL cert creds.

config-captain.json

This has all the info for both Caprover and the apps you have setup and configured on Caprover.

getAllApps() {
    const http = this.http

    return Promise.resolve()
        .then(http.fetch(http.GET, '/user/apps/appDefinitions', {}))
}

backup.json

This has salt as uuid and a list of nodes with some system info about that node.

getAllNodes() {
    const http = this.http

    return Promise.resolve()
        .then(http.fetch(http.GET, '/user/system/nodes', {}))
}
getNginxConfig() {
    const http = this.http

    return Promise.resolve() //
        .then(http.fetch(http.GET, '/user/system/nginxconfig', {}))
}