1
|
<?php
|
2
|
/*
|
3
|
* execacb.php
|
4
|
*
|
5
|
* part of pfSense (https://www.pfsense.org)
|
6
|
* Copyright (c) 2004-2019 Rubicon Communications, LLC (Netgate)
|
7
|
* Copyright (c) 2009 Erik Kristensen
|
8
|
* All rights reserved.
|
9
|
*
|
10
|
* originally part of m0n0wall (http://m0n0.ch/wall)
|
11
|
* Copyright (c) 2003-2004 Manuel Kasper <mk@neon1.net>.
|
12
|
* All rights reserved.
|
13
|
*
|
14
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
15
|
* you may not use this file except in compliance with the License.
|
16
|
* You may obtain a copy of the License at
|
17
|
*
|
18
|
* http://www.apache.org/licenses/LICENSE-2.0
|
19
|
*
|
20
|
* Unless required by applicable law or agreed to in writing, software
|
21
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
22
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
23
|
* See the License for the specific language governing permissions and
|
24
|
* limitations under the License.
|
25
|
*/
|
26
|
|
27
|
// Called from cron, this script makes a remote backup of the current configuration
|
28
|
// via the ACB system
|
29
|
|
30
|
require_once("config.inc");
|
31
|
require_once("acb.inc");
|
32
|
|
33
|
if ($config['system']['acb']['enable'] == "yes") {
|
34
|
write_config("Scheduled backup");
|
35
|
upload_config();
|
36
|
}
|
37
|
|
38
|
?>
|