AutomationFlowsDevOps › Automate File Backups with Scheduled n8n Workflow

Automate File Backups with Scheduled n8n Workflow

Original n8n title: W1

w1. Uses readWriteFile. Scheduled trigger; 4 nodes.

Cron / scheduled trigger★★☆☆☆ complexity4 nodesRead Write File
DevOps Trigger: Cron / scheduled Nodes: 4 Complexity: ★★☆☆☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "w1",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes",
              "expression": "1"
            }
          ]
        },
        "options": {
          "repeat": true
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        0
      ],
      "id": "142f6bc1-486a-4747-a6be-66c9210445e9",
      "name": "Schedule Trigger"
    },
    {
      "parameters": {
        "path": "webhook1",
        "options": {
          "allowUnauthorizedCerts": true,
          "responseCode": 200
        },
        "authentication": "none",
        "responseMode": "lastNode",
        "responseData": "allData",
        "httpMethod": "POST",
        "responseHeaders": {},
        "responseStatusCode": 200,
        "activate": true,
        "listenForTestEvent": true
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1.1,
      "position": [
        0,
        300
      ],
      "id": "http-trigger",
      "name": "HTTP Trigger"
    },
    {
      "parameters": {
        "operation": "toJson",
        "options": {}
      },
      "type": "n8n-nodes-base.convertToFile",
      "typeVersion": 1.1,
      "position": [
        640,
        80
      ],
      "id": "33c85e84-b6ce-4d3d-a0ce-65807d229915",
      "name": "Convert to File"
    },
    {
      "parameters": {
        "operation": "write",
        "fileName": "=/home/node/share/test_{{ $now.toMillis() }}.json",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        980,
        80
      ],
      "id": "fa6516bf-ea8f-4577-99d0-b8daaa793b75",
      "name": "Read/Write Files from Disk"
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Trigger": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        [
          {
            "node": "Read/Write Files from Disk",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

w1. Uses readWriteFile. Scheduled trigger; 4 nodes.

Source: https://github.com/Finfra/dockers/blob/c5df156819ff6445c6e2e13f7f1d313aa71689fa/n8n/w1.json — original creator credit. Request a take-down →

More DevOps workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

DevOps

This n8n workflow template uses community nodes and is only compatible with the self-hosted version of n8n.

Read Write File, Execute Command, Crypto +2
DevOps

ContextIQ GitHub Sync. Uses executeCommand. Scheduled trigger; 2 nodes.

Execute Command
DevOps

Who is this for? This template is ideal for n8n administrators, automation engineers, and DevOps teams who want to maintain bidirectional synchronization between their n8n workflows and GitHub reposit

n8n, GitHub
DevOps

Display Project Data On A Smashing Dashboard. Uses httpRequest, github. Scheduled trigger; 24 nodes.

HTTP Request, GitHub
DevOps

Dashboard. Uses httpRequest, github. Scheduled trigger; 24 nodes.

HTTP Request, GitHub