forked from gobackup/gobackup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgobackup_test.yml
77 lines (76 loc) · 1.66 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
# gobackup config example
# -----------------------
# Put this file in follow place:
# ~/.gobackup/gobackup.yml or /etc/gobackup/gobackup.yml
models:
base_test:
compress_with:
type: tgz
encrypt_with:
type: openssl
password: 123456
salt: false
openssl: true
store_with:
type: local
keep: 10
path: /Users/jason/Downloads/backup1
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:
store_with:
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
store_with:
type: ftp
keep: 15
path: /backup1/foo
host: your-host.com
port: 21
timeout: 30
username: user1
password: pass1
test_s3:
compress_with:
type: tgz
store_with:
type: s3
keep: 20
bucket: gobackup-test
region: ap-southeast-1
path: backups
access_key_id: Ohsgwk86h2ks
secret_access_key: Ojsiw729wujhKdhwsIIOw9173