-
Notifications
You must be signed in to change notification settings - Fork 226
/
gobackup_test.yml
146 lines (146 loc) · 3.25 KB
/
gobackup_test.yml
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# gobackup config example
# -----------------------
# Put this file in follow place:
# ~/.gobackup/gobackup.yml or /etc/gobackup/gobackup.yml
web:
username: gobackup
password: 123456
models:
base_test:
description: "This is base test."
schedule:
# At 04:05 on Sunday.
cron: "5 4 * * sun"
compress_with:
type: tgz
encrypt_with:
type: openssl
password: 123456
salt: false
openssl: true
default_storage: local
storages:
local:
type: local
keep: 10
path: /Users/jason/Downloads/backup1
scp:
type: scp
keep: 10
path: ~/backup
host: your-host.com
private_key: ~/.ssh/id_rsa
username: ubuntu
password: password
timeout: 300
s3:
type: s3
keep: 20
bucket: gobackup-test
region: ap-southeast-1
path: backups
access_key_id: xxxxxxxx
secret_access_key: xxxxxxxxxxxx
azure:
type: azure
account: my-storage-account
# container: gobackup
tenant_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
client_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
client_secret: xxxxxxxx
databases:
dummy_test:
type: mysql
host: localhost
port: 3306
database: dummy_test
username: root
password: 123456
redis1:
type: redis
mode: sync
rdb_path: /var/db/redis/dump.rdb
invoke_save: true
password: 456123
postgresql:
type: postgresql
host: localhost
archive:
includes:
- /home/ubuntu/.ssh/
- /etc/nginx/nginx.conf
- /etc/redis/redis.conf
- /etc/logrotate.d/
excludes:
- /home/ubuntu/.ssh/known_hosts
- /etc/logrotate.d/syslog
normal_files:
schedule:
every: "1day"
at: "0:30"
storages:
scp:
type: scp
keep: 10
path: ~/backup
host: your-host.com
private_key: ~/.ssh/id_rsa
username: ubuntu
password: password
timeout: 300
test_model:
compress_with:
type: tgz
storages:
ftp:
type: ftp
keep: 15
path: /backup1/foo
host: your-host.com
port: 21
timeout: 30
username: user1
password: pass1
archive:
includes:
- /etc/hosts
expand_env:
databases:
postgresql:
type: postgresql
database: demo
archive:
includes:
- /etc/hosts
storages:
s3:
type: s3
bucket: gobackup-test
region: ap-southeast-1
path: backups
access_key_id: $S3_ACCESS_KEY_ID
secret_access_key: ${S3_SECRET_ACCESS_KEY}
demo:
schedule:
every: "30s"
compress_with:
type: tgz
encrypt_with:
type: openssl
password: 123456
notifiers:
before_script: |
echo "before_script invoked."
after_script: |
echo "after_script invoked."
storages:
local:
type: local
keep: 10
path: /Users/jason/Downloads/backup1
archive:
includes:
- /Users/jason/work/imageproxy
excludes:
- /home/ubuntu/.ssh/known_hosts
- /etc/logrotate.d/syslog