-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
43 lines (34 loc) · 857 Bytes
/
README
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
Example config:
AejisBackup.config do
source('mydb', :postgresql) do
user 'rails'
password 'secret'
database 'application'
end
source('files', :archive) do
path '/Users/ptico/application/public/system'
format :xz
compression_level :high
end
storage('ptico-s3', :s3) do
access_key_id 'ACCESSKEY'
secret_access_key 'sEcRetACcesSkey'
host 's3.amazonaws.com'
bucket 'aejis'
use_ssl
end
storage('local', :local) do
path '/Users/ptico/backup'
end
backup(:hourly_backup) do
source 'mydb', 'files'
target 'local'
end
backup(:daily_backup) do
source 'mydb', 'files'
target 'ptico-s3'
end
end
Run:
backup -c /path/to/config.rb
backup -c /path/to/config.rb -b daily_backup