-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml.tmpl
60 lines (60 loc) · 1.32 KB
/
config.yaml.tmpl
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
tasks:
- name: "Backup remote to remote"
source:
backend:
type: "sftp"
vars:
host: "remote-source"
user: "user1"
md5sum_command: "md5sum"
sha1sum_command: "sha1sum"
path: "/"
filters:
- "+ /data/**"
- "+ /home/**"
- "- *"
target:
backend:
type: "sftp"
vars:
host: "remote-target"
user: "user2"
md5sum_command: "md5sum"
sha1sum_command: "sha1sum"
path: "/backups/remote-source/"
- name: "Backup remote to local"
source:
backend:
type: "sftp"
vars:
host: "remote-source"
user: "user1"
md5sum_command: "md5sum"
sha1sum_command: "sha1sum"
path: "/"
filters:
- "+ /data/**"
- "+ /home/**"
- "- *"
target:
backend:
type: "local"
path: "/backups/remote-source"
- name: "Backup local to remote"
source:
backend:
type: "local"
path: "/"
filters:
- "+ /data/**"
- "+ /home/**"
- "- *"
target:
backend:
type: "sftp"
vars:
host: "remote-target"
user: "user1"
md5sum_command: "md5sum"
sha1sum_command: "sha1sum"
path: "/backups/laptop"