Revision 865e08c2
Added by Scott Ullrich about 20 years ago
etc/inc/config.inc | ||
---|---|---|
1043 | 1043 |
function backup_config() { |
1044 | 1044 |
global $config, $g; |
1045 | 1045 |
|
1046 |
conf_mount_rw(); |
|
1047 |
|
|
1046 | 1048 |
/* Create backup directory if needed */ |
1047 | 1049 |
safe_mkdir("{$g['cf_conf_path']}/backup"); |
1048 | 1050 |
|
... | ... | |
1066 | 1068 |
$bakout = fopen($g['cf_conf_path'] . '/backup/backup.cache', "w"); |
1067 | 1069 |
fwrite($bakout, serialize($backupcache)); |
1068 | 1070 |
fclose($bakout); |
1071 |
|
|
1072 |
conf_mount_ro(); |
|
1073 |
|
|
1069 | 1074 |
return true; |
1070 | 1075 |
} |
1071 | 1076 |
?> |
Also available in: Unified diff
Enable image RW before trying to backup.
Fixes ticket #91