Kütüphane / Kod, Git ve Geliştirici Araçları
Kod, Git ve Geliştirici Araçları
DigitalOcean droplet snapshot'larını 48 saatte bir döndür, dördünü sakla
Her 48 saatte bir çalışır, tüm DigitalOcean droplet'lerini listeler, her biri için en yeni dördün dışındaki snapshot'ları siler ve yeni bir snapshot oluşturur.
Ne yapar
### 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.
Adımlar
- Filter
- List Snapshots for a Droplet
- List All Droplets
- Delete a Snapshot
- Droplet Actions snapshot (n8n.optimus01.co.za)
- Runs every 48hrs
Benzer otomasyonlar
Kod, Git ve Geliştirici AraçlarıYeni Bir DigitalOcean Droplet Oluşturma1 adımKod, Git ve Geliştirici AraçlarıDigitalOcean Droplet Anlık Görüntülerini Al ve Temizle6 adımKod, Git ve Geliştirici AraçlarıEski DigitalOcean droplet anlık görüntülerini 48 saatte bir temizleme43 adımDosyalar ve Bulut DepolamaFormdan dosyaları DigitalOcean Spaces'e yükle3 adım