Automation library · Documents and files

Create restorable n8n Docker backups in Google Drive with SSH

Started by someone submitting a form, and works across Google Drive. 44 steps, 1 branch, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large

44 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
2Loops or waits
1Service it connects to

The flow

Starts it 2Logic 20Service 22

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

  1. 1Run Scheduled BackupSchedule triggerStarts it
  2. 2Receive Restore FilesForm triggerStarts it
  3. 3Set Backup ConfigurationSetLogic
  4. 4Set Restore ConfigurationSetLogic
  5. 5Create Backup FolderGoogle DriveService
  6. 6Split Uploaded Backup FilesCodeLogic
  7. 7Create Credentials FolderGoogle DriveService
  8. 8Create Workflows FolderGoogle DriveService
  9. 9Parse Uploaded JSON FilesExtract From FileService
  10. 10Export Credentials via SSHSshService
  11. 11Export Workflows via SSHSshService
  12. 12Detect Backup Record TypesCodeLogic
  13. 13Parse Credential Export JSONCodeLogic
  14. 14Parse Workflow Export JSONCodeLogic
  15. 15Route Workflows and CredentialsSwitchLogic
  16. 16Split Credential ExportSplit OutLogic
  17. 17Split Workflow ExportSplit OutLogic
  18. 18Split Workflow RecordsSplit OutLogic
  19. 19Split Credential RecordsSplit OutLogic
  20. 20Loop Over CredentialsSplit In BatchesLogic
  21. 21Convert Credential Archive to JSONConvert To FileService
  22. 22Convert Workflow Archive to JSONConvert To FileService
  23. 23Loop Over WorkflowsSplit In BatchesLogic
  24. 24Convert Workflows for ImportConvert To FileService
  25. 25Convert Credentials for ImportConvert To FileService
  26. 26Convert Credential to JSONConvert To FileService
  27. 27Prepare Credential Archive UploadCodeLogic
  28. 28Prepare Workflow Archive UploadCodeLogic
  29. 29Convert Workflow to JSONConvert To FileService
  30. 30Upload Workflows to Remote HostSshService
  31. 31Upload Credentials to Remote HostSshService
  32. 32Prepare Credential File UploadCodeLogic
  33. 33Upload Credential Archive to DriveGoogle DriveService
  34. 34Upload Workflow Archive to DriveGoogle DriveService
  35. 35Prepare Workflow File UploadCodeLogic
  36. 36Import Workflows into n8nSshService
  37. 37Import Credentials into n8nSshService
  38. 38Upload Credential File to DriveGoogle DriveService
  39. 39Merge Workflow and Credential ExportsMergeLogic
  40. 40Upload Workflow File to DriveGoogle DriveService
  41. 41Build Combined BackupCodeLogic
  42. 42Convert Combined Backup to JSONConvert To FileService
  43. 43Prepare Combined Backup UploadCodeLogic
  44. 44Upload Combined Backup to DriveGoogle DriveService

How it's built

Starts on
Someone submitting a form
Steps
44, with 1 branch, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Drive
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 someone submitting a form.

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