-
Notifications
You must be signed in to change notification settings - Fork 0
/
example-config.yaml
128 lines (101 loc) · 3.51 KB
/
example-config.yaml
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
#
# config.yaml - configuration file for google-drive-backup
#
#
# reporting: the implemented method for reporting is send an email,
# and here are the configuration data
#
reportEmail:
emailFrom : "YOUR GOOGLE EMAIL ACCOUNT HERE"
emailTo : ["A LIST OF EMAILS TO NOTIFY, CAN BE LEFT EMPTY"]
# template of the "success" notification email, customize to suit your
# needs/language. The placeholders {day} and {hour} will be replaced
# by the day and hour of the copies, in day/month format.
emailSuccess :
subject : "OK: Copia de seguridad realizada con éxito el {day} a las {hour}"
body: >
Hola caraguapa:
El {day}, a las {hour} se ha realizado con éxito la copia de seguridad.
{report}
{backupPolicyExplanation}
Saludos,
El robot más caraguapa del mundo
emailFailure :
subject : "FAIL: Copia de seguridad HA FALLADO {day} a las {hour}"
body: >
Hola caraguapa:
Me temo que se ha producido un error en la copia de seguridad planificada para el día {day} a las {hour}.
El error que ha aparecido es:
{error_description}
Posiblemente la copia no se haya realizado. Conviene echar un vistazo cuanto antes.
Saludos,
El robot más caraguapa del mundo
#
# resources to backup configuration section
#
# do you need to do do something before or after
# the copies are made??? -like run a script to collect
# the backup copies, or stop a website or something like that-
# if so, you can configure it here
runBefore : ["/home/rluna/wkpy/google-drive-backup/data/database_backup.sh"]
runAfter : []
# the list of directories to backup (must NOT END in "/")
resourcesToBackup :
- "../data"
# Set this value to "true" if you want to
# verify the uploaded files
verifyUploadedFiles : true
#
# backup policies
#
# by default, three different policies can be configured: daily, monthly
# and yearly. The "daily" copies are made each day, and are stored in the
# indicated folder (in this example in the folder 01_diarios). Not all days
# are saved, only the last X days. That X is set in the retention. For
# instance, if you set a retention of 3, only 3 copies will be stored.
#
backupPolicy:
destinationFolder : "backup"
daily :
folder: "01_daily"
# how many different copies do you want to keep
retention : 3
monthly :
folder: "02_monthly"
#
# yearly:
# folder: "my_yearly_copies"
# retention: 10 # keep 10 years of copies
#
#
# config info for credentials.jsonfile
#
# you have to recover this information from google
# cloud console, after creating your own application
#
installed: null
#
# logging configuration: can be omitted if you want
#
logging:
version: 1
formatters:
formatter1:
format: "%(asctime)s %(levelname)-8s %(message)s"
datefmt: "%Y-%m-%d %H:%M"
handlers:
handler1:
class: "logging.handlers.RotatingFileHandler"
encoding : "utf-8"
filename : "drive-backup.log"
# 1 Mb
maxBytes : 1024000
backupCount : 3
formatter: formatter1
loggers:
rotatingFileLogger:
level: DEBUG
handlers: [ "handler1" ]
root:
handlers : [ "handler1" ]
level : DEBUG