forked from YunoHost-Apps/fallback_ynh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
actions.toml
64 lines (56 loc) · 2.43 KB
/
actions.toml
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
[force_backup]
name = "[Main server] Create a new backup"
command = "/bin/bash scripts/actions/force_backup"
# user = "root" # optional
# cwd = "/" # optional
# accepted_return_codes = [0, 1, 2, 3] # optional
accepted_return_codes = [0]
description = "Run Fallback to create a new backup and send it."
[clean_backups]
name = "[Main server] Clean all previous backup files"
command = "/bin/bash scripts/actions/clean_backups"
# user = "root" # optional
# cwd = "/" # optional
# accepted_return_codes = [0, 1, 2, 3] # optional
accepted_return_codes = [0]
description = "Remove all previous backup files made by Fallback."
[update_from_fallback]
name = "[Main server] Update from your fallback server"
command = "/bin/bash scripts/actions/update_from_fallback"
# user = "root" # optional
# cwd = "/" # optional
# accepted_return_codes = [0, 1, 2, 3] # optional
accepted_return_codes = [0]
description = "Update the main server with the backup from your fallback server."
[reset_default_config]
name = "Reset the config file and restore a default one."
command = "/bin/bash scripts/actions/reset_default_config \"both\""
# user = "root" # optional
# cwd = "/" # optional
# accepted_return_codes = [0, 1, 2, 3] # optional
accepted_return_codes = [0]
description = "Reset the config file config.conf or auto_check.conf."
[update_dns]
name = "Update your DNS to point your domain to this server."
command = "/bin/bash scripts/actions/update_dns"
# user = "root" # optional
# cwd = "/" # optional
# accepted_return_codes = [0, 1, 2, 3] # optional
accepted_return_codes = [0]
description = "In order to use that action, your 'auto_check.conf' file has to be set with 'auto_update_DNS=1' and 'auto_update_script' filled with a working script."
[deploy_fallback]
name = "[Fallback server] Deploy the fallback server."
command = "/bin/bash scripts/actions/deploy_fallback"
# user = "root" # optional
# cwd = "/" # optional
# accepted_return_codes = [0, 1, 2, 3] # optional
accepted_return_codes = [0]
description = "Deploy the fallback server to replace your broken main server."
[close_fallback]
name = "[Fallback server] Close the fallback server."
command = "/bin/bash scripts/actions/close_fallback"
# user = "root" # optional
# cwd = "/" # optional
# accepted_return_codes = [0, 1, 2, 3] # optional
accepted_return_codes = [0]
description = "Close the fallback server to return it to its fallback state. On the main server, use 'update_from_fallback' to update your data"