-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworkflowsUtility: OdooBackup.json
137 lines (137 loc) · 2.82 KB
/
workflowsUtility: OdooBackup.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"active": false,
"connections": {
"Schedule Trigger": {
"main": [
[
{
"node": "cleanup backups",
"type": "main",
"index": 0
}
]
]
},
"make backup": {
"main": [
[
{
"node": "make base backup",
"type": "main",
"index": 0
}
]
]
},
"cleanup backups": {
"main": [
[
{
"node": "make backup",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2023-02-25T08:34:52.260Z",
"id": "106",
"name": "Utility: OdooBackup",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 20
}
]
}
},
"id": "b928e526-1a22-477f-ae5b-0e644c2947e9",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1,
"position": [
320,
400
]
},
{
"parameters": {
"command": "cd; cd db_backups; pg_dump -U odoo -d btx -f btx_db_backup.sql"
},
"id": "49fc337b-4424-434d-85cf-f071dc224cc3",
"name": "make backup",
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
880,
400
],
"credentials": {
"sshPassword": {
"id": "PQHJSgsXQ8xsrCfq",
"name": "node5 (odoo)"
}
}
},
{
"parameters": {
"command": "cd; cd db_backups;pg_basebackup -F tar -D basebackup"
},
"id": "4b9074e4-0e7e-45a6-a1af-3c390dd62ef4",
"name": "make base backup",
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
1120,
400
],
"credentials": {
"sshPassword": {
"id": "PQHJSgsXQ8xsrCfq",
"name": "node5 (odoo)"
}
}
},
{
"parameters": {
"command": "cd; cd db_backups/basebackup; rm backup_manifest base.tar pg_wal.tar"
},
"id": "729b7bbb-3193-4bdd-80ee-489678c86355",
"name": "cleanup backups",
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
580,
400
],
"credentials": {
"sshPassword": {
"id": "PQHJSgsXQ8xsrCfq",
"name": "node5 (odoo)"
}
}
}
],
"pinData": {},
"settings": {},
"staticData": {
"node:Schedule Trigger": {
"recurrencyRules": []
}
},
"tags": [
{
"id": "33",
"createdAt": "2023-02-25T10:12:09.611Z",
"updatedAt": "2023-02-25T10:12:09.611Z",
"name": "odoo: utility"
}
],
"triggerCount": 1,
"updatedAt": "2024-10-09T10:52:55.000Z",
"versionId": "d1209631-bf3d-4ed9-b744-0aeec264404d"
}