-
Notifications
You must be signed in to change notification settings - Fork 2
/
parameters-sample.sh
executable file
·127 lines (127 loc) · 3.5 KB
/
parameters-sample.sh
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
#!/bin/bash
#
#===========================================================================#
#
#region | 00. Functionality and basic settings
#
# Comment out with <#> features to exclude them from executing in 'instant' backups
declare -x -a functionalityInstant=(
'Local Backup | Home directory'
'Local Backup | Docker Volumes'
'Local Backup | Docker Bind Mounts'
'Cloud Backup'
# (!) It is advised to use below features only for 'daily' backups
#'Daily-backup cleaner'
#'Daily-backup cloud cleaner'
#'Daily-backup archiver'
)
#
# Comment out with <#> features to exclude them from executing in 'daily' backups
declare -x -a functionalityDaily=(
'Local Backup | Home directory'
'Local Backup | Docker Volumes'
'Local Backup | Docker Bind Mounts'
'Cloud Backup'
'Daily-backup cleaner'
'Daily-backup cloud cleaner'
'Daily-backup archiver'
)
#
# Choose how many daily backups you want to keep (daily-cleaner settings)
declare -x -i dailyLocal=5
declare -x -i dailyCloud=5
#
#endregion
#
#===========================================================================#
#
#region | 01. Directories & folders
#
# Local Backup Directory
declare -x backupDir="path/to/location/where/backup/will/be/stored"
#
# Server Home Directory
declare -x homeDir="/your/home/directory"
#
# Name for backup of Server Home Directory
declare -x homeName="homeYourNameForExample"
#
# Exclude those homeDir sub-directories from backup
declare -x -a excludeDir=(
'photos' #exclude homeDir/photos
'folder/sub-folder' #exclude homeDir/folder/sub-folder
)
#
#endregion
#
#===========================================================================#
#
#region | 02. Arrays of Docker Containers
#
# declare -A volumeDocker00=(
# [container]='Container name'
# [volumePath]='Path to volume'
# [name]='Backup .tar file name'
# [stop]=true #or 'false' if you want to backup without stopping the container
# )
#
declare -x -A volumeDocker00=(
[container]='1st-container'
[volumePath]='/path/to/volume'
[name]='1st-container-backup'
[stop]=true
)
#
declare -x -A volumeDocker01=(
[container]='2nd-container'
[volumePath]='/path/to/volume'
[name]='2nd-container-backup'
[stop]=false
)
#
#endregion
#
#===========================================================================#
#
#region | 03. List od Docker Containers with Bind Mounts
#
declare -x -a bindDocker=(
'3rd-container'
'4th-container'
)
#
# List of Docker Container with Bind Mounts to stop during backup
declare -x -a bindDockerStop=(
#'3rd-container'
#'4th-container'
)
#
#endregion
#
#===========================================================================#
#
#region | 04. Gotify Configurations
#
# Gotify website + token, for example: https://push.example.de/message?token=<apptoken>
declare -x GotifyHost="https://push.example.de/message?token=<apptoken>"
#
# Title of Notification
declare -x GotifyTitle="yourServerName"
#
#endregion
#
#===========================================================================#
#
#region | 05. Netdata silencer
#
# Replace <apptoken> with Netdata 'api authorization token'
# that is stored in the file you will see in the following entry of http://NODE:19999/netdata.conf:
# [registry]
# # netdata management api key file = /var/lib/netdata/netdata.api.key
declare -x NetdataAuthToken="<apptoken>"
#
# Change to 'true' to enable Netdata silencer
declare -x NetdataSilencer=false
#
#
#endregion