-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackup-tasks-example.yaml
executable file
·77 lines (77 loc) · 2.24 KB
/
backup-tasks-example.yaml
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
---
-
name: Local Backup to Amazon S3 with no pgp encryption
backup-engine: duplicity
source:
# source *must* be local for duplicity
location: local
directory: /tmp/
destination:
directory: runa-backup/intrepid-test
protocol: s3
# Its probably better to set your Amazon key id as a shell variable AWS_ACCESS_KEY_ID
duplicity-aws-access-key-id: <You can put your Amazon EC2 access key id here>
# Its probably better to set your Amazon secret access key as a shell variable AWS_SECRET_ACCESS_KEY
duplicity-aws-secret-access-key: <You can put your Amazon EC2 access key here>
pgp-passphrase: I actually am a pgp passphrase
preserve: 6M
disabled: false
roundtrip-test: false
verify-signatures: false
duplicity-backup-flags: --no-encryption
-
name: My home directory on Host1
backup-engine: rdiff-backup
source:
location: host1
directory: /home/me
exclude: /home/me/.ssh /home/me/tmp
destination:
location: local
directory: /backups/host1/home/me
preserve: 6M
option-set: set1
-
name: My home directory on Host2
backup-engine: rdiff-backup
source:
location: host2
directory: /home/me
destination:
location: local
directory: /backups/host2/home/me
preserve: 6M
verify-signatures: false
roundtrip-test: false
# skip this whole operation
disabled: true
-
name: Database Backup on Host 1
backup-engine: rdiff-backup
source:
location: host1
directory: /var/lib/mysql
destination:
location: local
directory: /backups/host1/databases
pre-src: "'mysqldump --all-databases --user=root --password=super_secret > /var/lib/mysql/backup/nightly.sql'"
post-dest: "rm /var/lib/mysql/backup/nightly.sql"
option-set: set1
-
name: Local Chain to SomeFTPServer.com
backup-engine: duplicity
source:
# source *must* be local for duplicity
location: local
directory: /backups/host1/me
destination:
host: ftp.someserver.com
username: ftpuser
password: mypassword
directory: /backups
protocol: ftp
pgp-passphrase: I actually am a pgp passphrase
preserve: 6M
disabled: false
roundtrip-test: false
verify-signatures: false