[
    {
        "id": "acc19920675defbf",
        "type": "tab",
        "label": "Backup",
        "disabled": false,
        "info": ""
    },
    {
        "id": "4bc95209.1caa0c",
        "type": "file in",
        "z": "acc19920675defbf",
        "name": "flows.json",
        "filename": "/data/flows.json",
        "format": "utf8",
        "allProps": false,
        "x": 320,
        "y": 180,
        "wires": [
            [
                "5e94d86a.ae1428"
            ]
        ]
    },
    {
        "id": "5224e94d.0a1998",
        "type": "file",
        "z": "acc19920675defbf",
        "name": "",
        "filename": "",
        "appendNewline": false,
        "createDir": false,
        "overwriteFile": "true",
        "x": 730,
        "y": 200,
        "wires": [
            []
        ]
    },
    {
        "id": "a1bf209.b3cbde",
        "type": "inject",
        "z": "acc19920675defbf",
        "name": "",
        "repeat": "",
        "crontab": "",
        "once": true,
        "topic": "",
        "payload": "restarted",
        "payloadType": "str",
        "x": 120,
        "y": 180,
        "wires": [
            [
                "4bc95209.1caa0c",
                "1e014466.7207fc",
                "ef7fc4011b320568"
            ]
        ]
    },
    {
        "id": "5e94d86a.ae1428",
        "type": "function",
        "z": "acc19920675defbf",
        "name": "",
        "func": "msg.filename = \"/data/backups/backup_\"+(new Date().toISOString().replace(':', '_').replace(':', '_').replace(/\\..+/, ''))+\"_flows.json\";\nreturn msg;\n",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 540,
        "y": 160,
        "wires": [
            [
                "5224e94d.0a1998"
            ]
        ]
    },
    {
        "id": "1e014466.7207fc",
        "type": "file in",
        "z": "acc19920675defbf",
        "name": "flows_cred.json",
        "filename": "/data/flows_cred.json",
        "format": "utf8",
        "allProps": false,
        "x": 320,
        "y": 260,
        "wires": [
            [
                "e7750033.69c91"
            ]
        ]
    },
    {
        "id": "18da20c1.32438f",
        "type": "file",
        "z": "acc19920675defbf",
        "name": "",
        "filename": "",
        "appendNewline": false,
        "createDir": false,
        "overwriteFile": "true",
        "x": 730,
        "y": 260,
        "wires": [
            []
        ]
    },
    {
        "id": "e7750033.69c91",
        "type": "function",
        "z": "acc19920675defbf",
        "name": "",
        "func": "msg.filename = \"/data/backups/backup_\"+(new Date().toISOString().replace(':', '_').replace(':', '_').replace(/\\..+/, ''))+\"_flows_cred.json\";\nreturn msg;\n",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 540,
        "y": 260,
        "wires": [
            [
                "18da20c1.32438f"
            ]
        ]
    },
    {
        "id": "ef7fc4011b320568",
        "type": "file in",
        "z": "acc19920675defbf",
        "name": "package.json",
        "filename": "/data/package.json",
        "format": "utf8",
        "allProps": false,
        "x": 300,
        "y": 340,
        "wires": [
            [
                "9845bd9083a3e9cc"
            ]
        ]
    },
    {
        "id": "9845bd9083a3e9cc",
        "type": "function",
        "z": "acc19920675defbf",
        "name": "",
        "func": "msg.filename = \"/data/backups/backup_\"+(new Date().toISOString().replace(':', '_').replace(':', '_').replace(/\\..+/, ''))+\"_package.json\";\nreturn msg;\n",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 520,
        "y": 340,
        "wires": [
            [
                "3059bef99113b7cd"
            ]
        ]
    },
    {
        "id": "3059bef99113b7cd",
        "type": "file",
        "z": "acc19920675defbf",
        "name": "",
        "filename": "",
        "appendNewline": false,
        "createDir": false,
        "overwriteFile": "true",
        "x": 710,
        "y": 340,
        "wires": [
            []
        ]
    }
]