Command Info

Name: runcloud:cleanup-snapshots

Description: Clean up old backup snapshots based on retention policies

Status: completed

Start Time: 2025-05-06 09:50:32

End Time: 2025-05-06 09:54:50

Total Time: 4 minutes

Dispatched Jobs Count: 0

Successful Jobs Count: 0

Failed Jobs Count: 0

Output

09:50:32 Runcloud Backup Snapshots Cleanup Tool
09:50:32 Runcloud Backup Snapshots Cleanup Tool
09:50:32 ----------------------------------------
09:50:32 ----------------------------------------
09:50:32 Options:
09:50:32 Options:
09:50:32 --debug Show detailed debug information about each snapshot
09:50:32 --debug Show detailed debug information about each snapshot
09:50:32 --dry-run Check which snapshots would be deleted without actually deleting them
09:50:32 --dry-run Check which snapshots would be deleted without actually deleting them
09:50:32 --backup-id=X Process a specific backup by ID
09:50:32 --backup-id=X Process a specific backup by ID
09:50:32 --batch-size=N Number of backups to process per batch (default: 50)
09:50:32 --batch-size=N Number of backups to process per batch (default: 50)
09:50:32 --direct-api Bypass database cache and fetch directly from API
09:50:32 --direct-api Bypass database cache and fetch directly from API
09:50:32 Retention Policy:
09:50:32 Retention Policy:
09:50:32 - All sites: Keep all snapshots from the last 14 days
09:50:32 - All sites: Keep all snapshots from the last 14 days
09:50:32 - All sites: Keep snapshots from the 1st of each month for older backups
09:50:32 - All sites: Keep snapshots from the 1st of each month for older backups
09:50:32 - MONEY sites: Additionally keep weekly (Saturday) snapshots for 3 months
09:50:32 - MONEY sites: Additionally keep weekly (Saturday) snapshots for 3 months
09:50:32 DRY RUN MODE: No snapshots will actually be deleted
09:50:32 DRY RUN MODE: No snapshots will actually be deleted
09:50:32 Fetching specific backup ID: 244266 (direct from API)
09:50:32 Fetching specific backup ID: 244266 (direct from API)
09:50:32 Fetching backup directly from RunCloud API...
09:50:32 Fetching backup directly from RunCloud API...
09:54:49 Found backup via API: ID=244266, Name=www-blogram-jp
09:54:49 Found backup via API: ID=244266, Name=www-blogram-jp
09:54:49 Processing specific backup ID: 244266
09:54:49 Processing specific backup ID: 244266
09:54:49 Processing backup #244266 (Standard policy)
09:54:49 Processing backup #244266 (Standard policy)
09:54:49 Name: www-blogram-jp
09:54:49 Name: www-blogram-jp
09:54:49 Web Application ID: 2269432
09:54:49 Web Application ID: 2269432
09:54:50 Found 0 snapshots
09:54:50 Found 0 snapshots
09:54:50 No snapshots found for this backup
09:54:50 No snapshots found for this backup
09:54:50 === Summary ===
09:54:50 === Summary ===
09:54:50 Total backup instances: 1
09:54:50 Total backup instances: 1
09:54:50 Processed backup instances: 1
09:54:50 Processed backup instances: 1
09:54:50 Processed snapshots: 0
09:54:50 Processed snapshots: 0
09:54:50 Snapshots identified for deletion: 0
09:54:50 Snapshots identified for deletion: 0
09:54:50 Errors encountered: 0
09:54:50 Errors encountered: 0