Skip to content
FlowHubFluxonLab
C
Google Drivefree

Create restorable n8n Docker backups in Google Drive via SSH

by Hồ Đình Huyadapted from n8n official workflow galleryUpdated Aug 2026
RequiresCCodeGoogle DriveGoogle Drive
Share Post Share
SILoop Over WorkflowsLoop Over Workf…SILoop Over CredentialsLoop Over Crede…ScRun Scheduled BackupRun Scheduled B…SsExport Workflows via SSHExport Workflow…SsExport Credentials via SSHExport Credenti…CoParse Workflow Export JSONParse Workflow …CoParse Credential Export JSONParse Credentia…SOSplit Workflow ExportSplit Workflow …SOSplit Credential ExportSplit Credentia…CTConvert Workflow Archive to JSONConvert Workflo…CTConvert Workflow to JSONConvert Workflo…CoPrepare Workflow Archive UploadPrepare Workflo…CoPrepare Workflow File UploadPrepare Workflo…CoPrepare Credential File UploadPrepare Credent…CTConvert Credential to JSONConvert Credent…CoPrepare Credential Archive UploadPrepare Credent…CTConvert Credential Archive to JSONConvert Credent…MeMerge Workflow and Credential ExportsMerge Workflow …CTConvert Combined Backup to JSONConvert Combine…CoPrepare Combined Backup UploadPrepare Combine…CoSplit Uploaded Backup FilesSplit Uploaded …EFParse Uploaded JSON FilesParse Uploaded …CoDetect Backup Record TypesDetect Backup R…SwRoute Workflows and CredentialsRoute Workflows…SOSplit Workflow RecordsSplit Workflow …SOSplit Credential RecordsSplit Credentia…CTConvert Workflows for ImportConvert Workflo…CTConvert Credentials for ImportConvert Credent…SsUpload Workflows to Remote HostUpload Workflow…SsImport Workflows into n8nImport Workflow…SsImport Credentials into n8nImport Credenti…SsUpload Credentials to Remote HostUpload Credenti…SeSet Backup ConfigurationSet Backup Conf…SeSet Restore ConfigurationSet Restore Con…FoReceive Restore FilesReceive Restore…CoBuild Combined BackupBuild Combined …Upload Combined Backup to DriveUpload Combined…Upload Workflow Archive to DriveUpload Workflow…Upload Workflow File to DriveUpload Workflow…Create Credentials FolderCreate Credenti…Create Workflows FolderCreate Workflow…Create Backup FolderCreate Backup F…Upload Credential File to DriveUpload Credenti…Upload Credential Archive to DriveUpload Credenti…1234567891011121314151617181920212223242526272829303132
1/5
FLOWS
STEPS · 32
Runs on a schedule

Quick overview This workflow backs up n8n workflows and encrypted credentials from a self-hosted Docker instance via SSH, stores the exports as JSON files in structured Google Drive folders, and provides a Basic Auth–protected form to restore uploaded backups back into an n8n Docker container. How it works Runs on a cron schedule to start a backup and set the target n8n Docker container name and timestamp. Creates a timestamped backup folder in Google Drive with subfolders for workflows and credentials. Connects over SSH and runs the n8n CLI inside the Docker container to export all workflows and all credentials as JSON. Uploads a full workflows-all.json export and also uploads each workflow as its own JSON file into the Google Drive workflows folder. Uploads a full credentials-all.json export and also uploads each credential as its own JSON file into the Google Drive credentials folder. Builds a combined workflows-credentials.json package from both exports and uploads it to the root of the Google Drive backup folder.

Tags

n8nreference-onlygoogle-drive
Connects
CCodegoogledriveGoogle Drive
CategoryGoogle Drive
Triggermanual
Complexityadvanced
Nodes44
AddedJun 28, 2026

Related workflows

See all Google Drive
CgoogledrivesheetsW
free

Automatically Save & Organize LINE Message Files in Google Drive with Sheets Logging

Overview This workflow automatically saves files received via LINE Messaging API into Google Drive and logs the file details into a Google Sheet. It checks the file type against allowed types, organizes files into date-based folders and (optionally) file type–specific subfolders, and sends a reply message back to the LINE user with the file URL or an error message if the file type is not permitted. Who is this for? Developers & IT Administrators: Looking to integrate LINE with Google Drive and Sheets for automated file management. Businesses & Marketing Teams: That want to automatically archive media files and documents received from users via LINE. Anyone Interested in No-Code Automation: Users who want to leverage n8n’s capabilities without heavy coding. What Problem Does This Workflow Solve? Automated File Organization: Files received from LINE are automatically checked for allowed file types, then stored in a structured folder hierarchy in Google Drive (by date and/or file type). Data Logging: Each file upload is recorded in a Google Sheet, providing an audit trail with file names, upload dates, URLs, and types. Instant Feedback: Users receive an immediate reply via LINE confir

by Jaruphat J.
Cgoogledrive
free

Send specific PDF attachments from Gmail to Google Drive using OpenAI

This workflow reads PDF textual content and sends the text to OpenAI. Attachments of interest will then be uploaded to a specified Google Drive folder. For example, you may wish to send invoices received from an email to an inbox folder in Google Drive for later processing. This workflow has been designed to easily change the search term to match your needs. See the workflow for more details. Prerequisites OpenAI credentials. Google credentials. How it works Triggers off on the On email received node. Iterates over the attachments in the email. Uses the OpenAI node to filter out the attachments that do not match the search term set in the Configure node. You could match on various PDF files (i.e. invoice, receipt, or contract). If the PDF attachment matches the search term, the workflow uses the Google Drive node to upload the PDF attachment to a specific Google Drive folder.

by n8n Team
Cgoogledrive
free

Bulk Automated Google Drive Files Sharing and Direct Download Link Generation

This N8N workflow automates the process of sharing files from Google Drive. It includes OAuth2 authentication, batch processing, public link generation, and access status modification for efficient file handling. Suitable for users seeking to streamline their Google Drive file sharing process. sutiable for bulk actions, tested on 4.2K files folder working like charm. How It Works Initialize Workflow: The process begins with a Manual Trigger, allowing the user to start the workflow at their convenience. Folder ID Specification: A 'Set Folder ID' node where the user can enter the desired Google Drive Folder ID. List Files from Google Drive: The 'Google Drive' node lists all files within the specified folder using OAuth2 authentication. Batch Processing: The 'Loop Over Items' node processes the files in batches for efficiency. Generate Public Links: The 'Generate Download Links' node creates downloadable links for each file. Change File Access: The 'Change Status' node alters the file status to make them publicly accessible. Merge and Output: A 'Merge' node consolidates the data, preparing it for further actions or output. Set Up Steps Estimated Time**: The setup should take approxima

by Nskha