The flow
Starts it 1Logic 12Service 15
The steps in the order they run, from what starts it.
- 1Schedule TriggerSchedule triggerStarts it
- 2CONFIG - Set your variables hereSetLogic
- 3Read InventoryGoogle SheetsService
- 4Create new backup folderGoogle DriveService
- 5Get all n8n workflowsN8nService
- 6Loop over each workflowSplit In BatchesLogic
- 7Calculate Changes (Sheets)CodeLogic
- 8After all uploads completeSetLogic
- 9Format workflow for exportCodeLogic
- 10Split ChangesCodeLogic
- 11Clear InventoryGoogle SheetsService
- 12List all uploaded filesGoogle DriveService
- 13Upload workflow to Google DriveGoogle DriveService
- 14Append LogGoogle SheetsService
- 15Split InventoryCodeLogic
- 16Loop over files to downloadSplit In BatchesLogic
- 17Update InventoryGoogle SheetsService
- 18Merge binary filesCodeLogic
- 19Download file as binaryGoogle DriveService
- 20Compress to ZIPCompressionService
- 21Upload ZIP to parent folderGoogle DriveService
- 22Delete temporary folderGoogle DriveService
- 23Start cleanup (run once)SetLogic
- 24List ZIP backups from Google DriveGoogle DriveService
- 25Sort and isolate old ZIP backupsCodeLogic
- 26Loop over ZIP backups to deleteSplit In BatchesLogic
- 27Delete a fileGoogle DriveService
- 28Delete old ZIP backupGoogle DriveService