This repository has been archived by the owner on Oct 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.php
84 lines (83 loc) · 2.36 KB
/
config.example.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
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
78
79
80
81
82
83
<?php
$debugLevel = 'info'; // 'error', 'info', 'debug'
$apiKey = 'token from';// https://console.online.net/en/api/access
$xmpp = [
'address' => 'tcp://example.com:5222',
'username' => 'saturn',
'password' => 'your password from jabber',
'to' => '[email protected]'
];
$excludeList = [
'.gvfs',
'.cache* ',
'[Cc]ache* ',
'.thumbnails* ',
'[Tt]rash* ',
'*.backup* ',
'*~ ',
'.dropbox* ',
'/proc/*',
'/sys/*',
'/dev/*',
'/run/*',
'/srv/ftp',
'/etc/sudoers',
'/etc/shadow',
'/etc/shadow-',
'/etc/shadow.pacnew',
'/etc/passwd-',
'/home/your-username/.steam',
'/home/your-username/.local/share/Steam',
'/home/your-username/Ubuntu One',
'/home/your-username/VirtualBox VMs',
];
$rsyncOptions = '-rtDH \
--checksum \
--no-i-r \
--links -A -X -pEgo \
--delete \
--partial \
--ignore-errors \
--chmod=Du+wx \
--delete-excluded -i';// --out-format="BACKINTIME: %i %n%L"
return [
'default' => [//profile name
//example with encryption and xmpp
'xmpp' => $xmpp,
'encrypt' => true,
'password' => 'password for encfs. Must be very strong',
'privateKey' => 'full path to key', //usually /home/user/.ssh/id_rsa
'publicKey' => 'full path to key.pub', //usually /home/user/.ssh/id_rsa.pub
'safeName' => 'data',
'rotationOptions' => [
'onePerYear' => true,//1 backup for 1-12 months
'onePer6Months' => true,//1 backup for 1-6 months
'onePer3months' => true,//1 backup for 1-3 months
'wholeMonth' => true,//all backups for 37 days
],
'include' => [
'/etc',
'/srv',
'/home',
],
'exclude' => $excludeList,
'apiKey' => $apiKey,
'rsyncOptions' => $rsyncOptions,
],
'books' => [
//'xmpp' => $xmpp, no xmpp
'encrypt' => false,
'privateKey' => 'full path to key', //usually /home/user/.ssh/id_rsa
'publicKey' => 'full path to key.pub', //usually /home/user/.ssh/id_rsa.pub
'safeName' => 'books',
'rotationOptions' => [],//keep all backups
'include' => [
'/etc',
'/srv',
'/home',
],
'exclude' => $excludeList,
'apiKey' => $apiKey,
'rsyncOptions' => $rsyncOptions,
],
];