-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php.SAMPLE
More file actions
51 lines (44 loc) · 1.1 KB
/
config.php.SAMPLE
File metadata and controls
51 lines (44 loc) · 1.1 KB
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
<?php
/**
* Configurarions for migration (if any)
*/
$migrations = [
[
'origin' => [
'host' => '54.94.194.111',
'username' => 'tempx',
'password' => 'psw',
'port' => '27017',
'database' => 'myoriginaldb',
'exclude-collection' => 'system.user'
],
'destination' => [
'host' => 'mydestserver.com',
'username' => 'username',
'password' => 'mypass',
'database' => 'mydb',
]
],
];
/**
* Configuration for backup
*
*/
$backupConfig = [
// where backup is going to be saved
'datadir' => __DIR__ . '/data',
'logfile' => __DIR__ . '/log/mongodb-backup.log',
// number of backups to be kept
'keep_latest' => 3,
// database server
'origin' => [
'host' => '54.94.222.111',
'username' => 'myuser',
'password' => 'pass',
'port' => '27017',
'database' => 'mydatabase',
'exclude-collection' => 'system.user'
],
// mongodump command
'mongodump-command' => '/usr/bin/mongodump',
];