Description

This check ensures that every Linode instance is enrolled in the Linode Backup service, which automatically keeps three rotating backups of the instance's disks: a daily backup, a 2 to 7 day old backup and an 8 to 14 day old backup. Without it, there is no managed recovery point to restore from after accidental deletion, corruption or ransomware. Each Linode is evaluated separately.

Rationale

Disk failure, a bad update, accidental deletion of files or a ransomware attack can destroy the data on a Linode. Without backups the data cannot be recovered and the service may be down for a long time. The Backup service provides managed restore points without needing to build a separate backup solution.

Impact

  • The Backup service is a paid add-on; a monthly cost is added for each Linode where it is enabled. The cost depends on the Linode plan (for example, $2.00 per month for a Nanode 1 GB) and is shown on the Backups tab and in the confirmation pop-up

  • Backups are not encrypted, even when they are taken from an encrypted disk

Default Value

Backups are enabled per Linode and are not turned on unless selected. They can be enabled when a Linode is created (Automated VM Backups checkbox) or automatically for all new Linodes with Backup Auto Enrollment in Account Settings.

Pre-Requisites

  • A Cloud Manager user with permission to modify the Linode and accept billing changes

  • For the CLI test plan: a Personal Access Token created by an unrestricted user with Linodes: Read Only scope

  • For the CLI implementation: Linode CLI (linode-cli) configured with a token that has Linodes: Read/Write scope

Remediation

Test Plan

Console:

  1. Sign in to Cloud Manager at https://cloud.linode.com.

  2. In the sidebar, under Compute, click Linodes and select the Linode.

  3. Click the Backups tab.

  4. If the page shows the Backups introduction with an Enable Backups button, the Backup service is not enabled for this Linode.

  5. Repeat for each Linode.

CLI:

Set the token:

export LINODE_TOKEN="<your-personal-access-token>"

List every Linode with its backup status:

curl -s -H "Authorization: Bearer $LINODE_TOKEN" "https://api.linode.com/v4/linode/instances?page_size=500" | jq '.data[] | {id, label, region, backups_enabled: .backups.enabled}'

A Linode passes if backups_enabled is true and fails if it is false.

Implementation Steps

Console:

  1. Sign in to Cloud Manager at https://cloud.linode.com.

  2. In the sidebar, under Compute, click Linodes and select the Linode.

  3. Click the Backups tab.

  4. Click Enable Backups.

  5. In the pop-up that shows the monthly cost, click Enable Backups to confirm.

  6. Repeat for each Linode that failed the check.

  7. Optional: to enable backups for all new Linodes automatically, in the sidebar, under Administration, click Account Settings and turn on the switch in the Backup Auto Enrollment panel. This does not enroll existing Linodes.

CLI:

Enable backups for a Linode:

linode-cli linodes backups-enable <LINODE_ID>

Backout Plan

Warning: cancelling the Backup service permanently deletes all existing backups of the Linode, including its manual snapshot. Back up important data another way first.

Console:

  1. Sign in to Cloud Manager at https://cloud.linode.com.

  2. In the sidebar, under Compute, click Linodes and select the Linode.

  3. Click the Backups tab.

  4. Click Cancel Backups at the bottom of the page.

CLI:

Cancel backups for a Linode:

linode-cli linodes backups-cancel <LINODE_ID>

Reference