Automation library · Content

Back up Instagram videos to Google Drive with JSON

Started by a clock, and works across Google Drive and n8n data table. 26 steps, 2 branches, 3 loops or waits: large, and worth reading before you trust it with anything live.

Large

26 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
3Loops or waits
2Services it connects to

The flow

Starts it 2Logic 14Service 10

The steps in the order they run, from what starts it.

  1. 1Manual TriggerManual triggerStarts it
  2. 2Schedule TriggerSchedule triggerStarts it
  3. 3Get Instagram Account InfoHttp RequestService
  4. 4ConfigurationSetLogic
  5. 5Fetch Instagram MediaHttp RequestService
  6. 6Sort Earliest to LatestCodeLogic
  7. 7Split Out Media ItemsSplit OutLogic
  8. 8Filter Videos OnlyIfLogic
  9. 9Loop Over VideosSplit In BatchesLogic
  10. 10Get All Data Table RecordsData TableService
  11. 11Check If Already Backed UpData TableService
  12. 12Build Metadata from Data TableCodeLogic
  13. 13IF Not Already Backed UpIfLogic
  14. 14Upload New Metadata FileGoogle DriveService
  15. 15WaitWaitLogic
  16. 16End LoopNo OpLogic
  17. 17List All Metadata FilesHttp RequestService
  18. 18Parse CaptionCodeLogic
  19. 19Find Old Metadata FilesCodeLogic
  20. 20Download VideoHttp RequestService
  21. 21Loop Over Old FilesSplit In BatchesLogic
  22. 22Upload to Google DriveGoogle DriveService
  23. 23End Cleanup LoopNo OpLogic
  24. 24Delete Old Metadata FileGoogle DriveService
  25. 25Extract MetadataSetLogic
  26. 26Save Backup RecordData TableService

How it's built

Starts on
A clock
Steps
26, with 2 branches, 3 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Drive, n8n data table
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Google Drive account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 26 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 26 steps before you point it at anything that matters.