-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathenv-example
83 lines (72 loc) · 1.11 KB
/
env-example
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
# ===================================
# bash-backup
# Environments file
#
# author: [email protected]
# LICENSE: MIT License
# github: newsdict/bash-backup
# ===================================
#
# Temporary Directory
# default: ./tmp
#
temporary_directory=/tmp
#
# log name
#
log_name=/var/log/backup.$now.log
#
# backup filename
#
backup_filename=backup
#
# display messages
#
display_messages=1
#
# Execute archive
#
archive=1
#
# Archive paths or files
#
declare -a archive_paths=(
"/var/www/html"
"/etc/nginx"
)
#
# Compression type of backup
# gzip: *.tar.gz
# zip: *.zip
# bzip2: *.tar.bz2
#
commpression_type=gzip
#
# Execute database
#
database=1
#
# Database Type for Dump
#
declare -A database_conf=(
["engine"]="mysql" # mysql only
["name"]="sample1_database" # database name
["username"]="user1" # username
["password"]="pass" # password
["host"]="127.0.0.1" # host
["port"]=3306 # port
)
#
# Storage type for backup files
# s3 only
storage_type=s3
#
# s3 info
declare -A s3_conf=(
["keep"]=5
["access_key"]=""
["secret"]=""
["bucket"]="backup"
["path"]="test"
["region"]="ap-northeast-1"
)