How to Archive and Restore an App

App Platform is a Platform-as-a-Service (PaaS) offering that allows developers to publish code directly to DigitalOcean servers without worrying about the underlying infrastructure.


You can archive an app to store its data and configuration. Archiving an app takes it offline and stops incurring charges for the app’s components, with the exception of associated databases and dedicated egress IPs. This can be useful for seasonal applications, temporary projects, and creating staging environments. You can also restore an archived app to resume using it.

To archive an app, update the app spec’s maintenance object with an archive field and set it to true, like this:

    
        
            
name: sample-golang
maintenance:
 archive: true
services:
- name: web
   github:
     repo: digitalocean/sample-golang
     branch: master

        
    

Once you have saved the changes, this triggers a new deployment that stops all the running components and serves an offline page at the app’s URL.

To restore the archived app, set the archive field to false.

In this article...