Filter Automate

7/8/2025
17 nodes
Complex
schedulecomplexfiltersticky noteautomationadvancedapiintegration
Categories:
Schedule TriggeredComplex Workflow
Integrations:
FilterSticky Note

Target Audience

This workflow is ideal for:
- System Administrators: Managing multiple DigitalOcean droplets and ensuring they have up-to-date backups.
- DevOps Engineers: Automating snapshot management to maintain system integrity and availability.
- Freelancers and Agencies: Providing clients with reliable backup solutions without manual intervention.
- Small Business Owners: Ensuring data safety and minimizing downtime by automating snapshot processes.

Problem Solved

This workflow addresses the challenge of managing multiple snapshots for DigitalOcean droplets effectively. It ensures that:
- No more than 4 snapshots are retained per droplet, preventing unnecessary storage costs.
- Old snapshots are automatically deleted, freeing up resources and maintaining optimal performance.
- New snapshots are created regularly, ensuring that backups are always current and minimizing the risk of data loss.

Workflow Steps

  • Trigger: The workflow runs every 48 hours to manage snapshots.
    2. List All Droplets: It fetches a list of all droplets in your DigitalOcean account.
    3. Retrieve Snapshots: For each droplet, it retrieves the existing snapshots to assess the current state.
    4. Filter Snapshots: It checks if the number of snapshots is greater than or equal to 4.
    5. Delete Old Snapshots: If the limit is exceeded, the oldest snapshot is deleted to maintain the desired count.
    6. Create New Snapshot: After cleanup, a new snapshot is created for each droplet, ensuring up-to-date backups.
  • Customization Guide

    Users can customize this workflow by:
    - Adjusting Snapshot Limit: Change the value in the filter node to keep more or fewer snapshots than the default of 4.
    - Modifying Run Frequency: Alter the cron node settings to run the workflow more or less frequently than every 48 hours based on specific needs.
    - Enhancing with Notifications: Add a notification node (e.g., Slack or email) to receive alerts when snapshots are deleted or created, improving oversight and management.