-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.sample.php
52 lines (41 loc) · 1.27 KB
/
config.sample.php
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
<?php
$config = [];
// drives for S.M.A.R.T. health status
$config['smart'] = [
'/dev/disk/by-id/ID1'=>'System',
'/dev/disk/by-id/ID2'=>'Backup 1',
'/dev/disk/by-id/ID3'=>'Backup 2'
];
// partitions (mount points) for usage status
$config['usage'] = [
'/'=>'System',
'/mnt/backup1'=>'Backup 1',
'/mnt/backup2'=>'Backup 2'
];
// backup commands
$config['backup'] = [
'backup1db'=>[
'description'=>'DB to Backup 1',
'command'=>'/usr/bin/mysqldump --single-transaction -u user -ppassword dbname > /mnt/backup1/db/obdb.sql'
],
'backup2db'=>[
'description'=>'DB to Backup 2',
'command'=>'/usr/bin/mysqldump --single-transaction -u user -ppassword dbname > /mnt/backup2/db/obdb.sql'
],
'backup1media'=>[
'description'=>'Media to Backup 1',
'command'=>'/usr/bin/rsync -a /home/media/ /mnt/backup1/media/'
],
'backup2media'=>[
'description'=>'Media to Backup 2',
'command'=>'/usr/bin/rsync -a /home/media/ /mnt/backup2/media/'
],
'backup1server'=>[
'description'=>'OB Server to Backup 1',
'command'=>'/usr/bin/rsync -a /var/www/observer/ /mnt/backup1/server/'
],
'backup2server'=>[
'description'=>'OB Server to Backup 2',
'command'=>'/usr/bin/rsync -a /var/www/observer/ /mnt/backup2/server/'
]
];