Automation library · Documents and files

Automatic n8n Workflow Backup with Google Drive and Telegram

Started by an incoming Telegram message, and works across Google Drive and Telegram. 18 steps, 1 branch, 1 loop or waits: a working afternoon to understand properly.

Medium

18 stepsMedium: a working afternoon
1Branch: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 3Logic 7Service 8

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

  1. 1Manual triggerManual triggerStarts it
  2. 2Schedule TriggerSchedule triggerStarts it
  3. 3Check your channel IDTelegram triggerStarts it
  4. 4Folder and backup settingsSetLogic
  5. 5find main backup folder idGoogle DriveService
  6. 6Create backup folder with current dateGoogle DriveService
  7. 7Get all n8n workflowsN8nService
  8. 8Loop Split In BatchesLogic
  9. 9LimitLimitLogic
  10. 10Convert workflow to JSONConvert To FileService
  11. 11Search old backup folders idGoogle DriveService
  12. 12Upload one workflowGoogle DriveService
  13. 13Old backup?IfLogic
  14. 14Delete old backupsGoogle DriveService
  15. 15MergeMergeLogic
  16. 16Telegram and time zone settingsSetLogic
  17. 17Prepare Log messageCodeLogic
  18. 18Send logTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
18, with 1 branch, 1 loop or waits
Size
Medium: a working afternoon
Connects to
Google Drive, Telegram
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

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

What starts it?

It starts on an incoming Telegram message.

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?

Plan an afternoon. 18 steps is enough that you should read each one before running it.

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 18 steps before you point it at anything that matters.