Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Code, Git & Developer Tools

Code, Git & Developer Tools

Clean Up Old DigitalOcean Droplet Snapshots Every 48 Hours

Every 48 hours, it takes a new snapshot of your DigitalOcean droplets, lists the existing ones and deletes the old snapshots.

What it does

### What this workflow does 1. Runs every 48 hours: The workflow is triggered by a cron node that runs every 48 hours, ensuring timely snapshot management. 2. List all droplets: The workflow retrieves all droplets in the DigitalOcean account. 3. Retrieve snapshots: For each droplet, the workflow retrieves a list of existing snapshots. 4. Filter snapshots: If the number of snapshots exceeds 4, the workflow filters for snapshots that need to be deleted. 5. Delete snapshots: Excess snapshots are automatically deleted based on the filter criteria. 6. Create new snapshot: After cleaning up, the workflow creates a new snapshot for each droplet, ensuring that backups are always up-to-date.

The steps

  1. Filter
  2. List Snapshots for a Droplet
  3. List All Droplets
  4. Delete a Snapshot
  5. Droplet Actions snapshot (n8n.optimus01.co.za)
  6. Runs every 48hrs
  7. Error Handler
  8. Stopanderror 1
  9. Stopanderror 2
  10. Stopanderror 3
  11. Error Handler for 54b0f895
  12. Error Handler for 7c47438f
  13. Error Handler for e751f6a4
  14. Error Handler for d4cc4a72

43 steps in total.

Similar automations