You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function copy_r($from, $to, $skip=false) {
global $skip;
$dir = opendir($from);
if (!file_exists($to)) {mkdir ($to, 0775, true);}
while (false !== ($file = readdir($dir))) {
if ($file == '.' OR $file == '..' OR in_array($file, $skip)) {continue;}
Hi,
sorry, did not give it up. will put it online tomorrow.
for me some things in the settings deleted and backup added.
synonymous have the standard skin changed a little (there are no more edges in the cover presentation, etc.)
backup.php
`<?php
$from = "/mnt/hdd/B";
$to = "/media/usb0/Backup";
$skip = array('some_file.php', 'somedir');
copy_r($from, $to, $skip);
function copy_r($from, $to, $skip=false) {
global $skip;
$dir = opendir($from);
if (!file_exists($to)) {mkdir ($to, 0775, true);}
while (false !== ($file = readdir($dir))) {
if ($file == '.' OR $file == '..' OR in_array($file, $skip)) {continue;}
exec ("find /media/usb0 -type d -exec chmod 0777 {} +");
exec ("find /media/usb0 -type f -exec chmod 0777 {} +");
}
//$creport = 'Backup OK';
// echo '<script type="text/javascript">alert("'.$creport.'");</script>';
header('Location: index.php');
exit;
?>
`
Originally posted by @marcbth in #103 (comment)
The text was updated successfully, but these errors were encountered: