Contabo VPS Automated Snapshot Backup Workflow

This workflow implements automated snapshot backup management for virtual private servers (VPS) on the Contabo platform, ensuring data security. It triggers daily to automatically create snapshots and intelligently manage existing ones, deleting old snapshots to save storage space. Additionally, it uses an API for secure authentication to ensure the legality of operations, reducing operational costs. This solution is suitable for businesses and individual users who require regular backups and quick recovery.

Workflow Diagram
Contabo VPS Automated Snapshot Backup Workflow Workflow diagram

Workflow Name

Contabo VPS Automated Snapshot Backup Workflow

Key Features and Highlights

This workflow automates the entire process of snapshot backups for Virtual Private Servers (VPS) hosted on the Contabo platform. Triggered on a scheduled basis, it performs snapshot operations on VPS instances automatically at midnight every day, ensuring data security and system state preservation. Additionally, the workflow intelligently detects existing snapshots and supports automatic deletion of outdated snapshots to prevent redundant resource consumption, maintaining efficient and organized snapshot management.

Core Problems Addressed

  • Automates VPS backups to avoid missed backups caused by human error.
  • Intelligently manages snapshots to prevent excessive storage usage due to snapshot accumulation.
  • Ensures operation legitimacy and security through API authentication.
  • Enables unattended operation via scheduled triggers, reducing maintenance costs.

Application Scenarios

  • Cloud server operation automation, especially for users utilizing Contabo cloud services.
  • Enterprises and individuals requiring regular system state snapshot backups for VPS.
  • Scenarios that demand data integrity and rapid recovery capabilities for critical business servers.

Main Workflow Steps

  1. Schedule Trigger: Configure the workflow to start automatically at midnight daily.
  2. Retrieve Current Date and Time: Used for naming and describing snapshots.
  3. Authorization: Authenticate using pre-configured Contabo API credentials and obtain access tokens via OAuth2.
  4. UUID Generation: Generate unique request and trace IDs for each request to ensure uniqueness and secure traceability.
  5. List All VPS Instances: Call the Contabo API to retrieve the list of all VPS instances owned by the user.
  6. Split Instance List: Process each VPS instance individually.
  7. List Instance Snapshots: Query existing snapshots for each VPS instance.
  8. Snapshot Existence Check: Determine subsequent actions based on whether snapshots exist.
  9. Delete Old Snapshots: Remove existing snapshots if present to avoid redundancy.
  10. Create New Snapshot: Create a new snapshot for the VPS instance, including the current date and instance details in its name and description.
  11. Set Snapshot Attributes: Organize snapshot-related information for easier management and logging.

Systems and Services Involved

  • Contabo API: Facilitates VPS instance information retrieval and snapshot management operations.
  • UUID Generator API: Generates unique UUIDs for each request to enhance security and traceability.
  • n8n Automation Platform: Serves as the workflow execution environment, enabling data flow between nodes and automation logic control.

Target Users and Value Proposition

  • Developers and operations personnel using Contabo cloud servers.
  • Small and medium-sized enterprises seeking to simplify VPS backup processes and improve operational efficiency.
  • Technical teams aiming to secure server data through automation and enable rapid recovery.
  • Any users needing regular Contabo VPS backups with automated snapshot lifecycle management.

This workflow is designed by seasoned automation expert Marcos Antonio and includes comprehensive API credential configuration instructions and user documentation. Users only need to input their Contabo API authentication details to enable automatic backups and effortlessly secure their VPS data. For more information and source code, please visit the author’s LinkedIn and GitHub pages.