-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.py
41 lines (28 loc) · 1.76 KB
/
config.py
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
#!/usr/bin/python
# -*- coding: utf8 -*-
# Configuration file of Pybackup
# Main confguration
date_format = '%Y-%m-%d'
path = '/home/alphabraga/pybackup/' # Pasta onde se deseja salvar os backups dos bancos de dados
use_mail = False # You want to send email?
attach = False # you want to attach the backup files in email?
attach_databases = [] # put the databases in list ['db1', 'db2', 'db3']
# Mysql Config
mysql_host = 'localhost' # nome ou ip do servidor Mysql
mysql_user = 'root' # nome do usuario para acesso ao servidor de banco de dados
mysql_password = '' # senha para acesso ao banco de dados
# Email Config
smtp_host = '' # smtp server ip or domain 'smtp.gmail.com'
smtp_port = 587 # smtp port 587
smtp_user = '' # smtp user email '[email protected]'
smtp_password = '' # smtp password
smtp_to = [] # send emails to ['[email protected]', e'[email protected]']
#Rsync COnfig
use_rsync = True
remote_host = ''
remote_user = ''
remote_path = ''
name = 'Alfredo Braga' # email FROM name
subject = 'Backup by Pybackup' # email subject
menssage_footer = 'Made with PyBackup. More info on https://github.com/alphabraga/PyBackup' # email footer text
#config end file ./config.py