# Back up Instagram videos to Google Drive with JSON: n8n workflow

> 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...

Source: https://millionrounds.com/workflow/back-up-instagram-videos-to-google-drive-with-json (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Content](https://millionrounds.com/workflows?category=Content#library)

# 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

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fback-up-instagram-videos-to-google-drive-with-json)

**26 steps** Large: read it before trusting it with anything live

**2** Branches: places the flow splits

**3** Loops or waits

**2** Services it connects to

## The flow

Starts it 2 Logic 14 Service 10

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

- 1 **Manual Trigger** Manual trigger *Starts it*
- 2 **Schedule Trigger** Schedule trigger *Starts it*
- 3 **Get Instagram Account Info** Http Request *Service*
- 4 **Configuration** Set *Logic*
- 5 **Fetch Instagram Media** Http Request *Service*
- 6 **Sort Earliest to Latest** Code *Logic*
- 7 **Split Out Media Items** Split Out *Logic*
- 8 **Filter Videos Only** If *Logic*
- 9 **Loop Over Videos** Split In Batches *Logic*
- 10 **Get All Data Table Records** Data Table *Service*
- 11 **Check If Already Backed Up** Data Table *Service*
- 12 **Build Metadata from Data Table** Code *Logic*
- 13 **IF Not Already Backed Up** If *Logic*
- 14 **Upload New Metadata File** Google Drive *Service*
- 15 **Wait** Wait *Logic*
- 16 **End Loop** No Op *Logic*
- 17 **List All Metadata Files** Http Request *Service*
- 18 **Parse Caption** Code *Logic*
- 19 **Find Old Metadata Files** Code *Logic*
- 20 **Download Video** Http Request *Service*
- 21 **Loop Over Old Files** Split In Batches *Logic*
- 22 **Upload to Google Drive** Google Drive *Service*
- 23 **End Cleanup Loop** No Op *Logic*
- 24 **Delete Old Metadata File** Google Drive *Service*
- 25 **Extract Metadata** Set *Logic*
- 26 **Save Backup Record** Data Table *Service*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fback-up-instagram-videos-to-google-drive-with-json)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[n8n data table](https://millionrounds.com/workflows?service=n8n+data+table#library)

## Workflows like it

Also content, with the same services where possible, closest in size first.

- [**Extend and merge UGC viral videos with Kling 2.1** 26 steps · Google Drive, Google Sheets](https://millionrounds.com/workflow/extend-and-merge-ugc-viral-videos-with-kling-2-1)
- [**AI YouTube Shorts Creator: Prompt-Based Clipping, Dubbing** 26 steps · calls a model · FTP, Google Drive](https://millionrounds.com/workflow/ai-youtube-shorts-creator-prompt-based-clipping-dubbing)
- [**An AI agent to create faceless YouTube videos with OpenAI** 26 steps · calls a model · Google Drive](https://millionrounds.com/workflow/an-ai-agent-to-create-faceless-youtube-videos-with-openai)
- [**Competitive ad research & image generator with Apify** 26 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/competitive-ad-research-and-image-generator-with-apify)
- [**LinkedIn post generator with OpenAI and Gmail** 26 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/linkedin-post-generator-with-openai-and-gmail)
- [**Video speech enhancement with OpenAI Whisper** 26 steps · calls a model · FTP, Google Drive](https://millionrounds.com/workflow/video-speech-enhancement-with-openai-whisper)
