folder backup

This commit is contained in:
shimon
2023-03-01 16:55:20 +02:00
parent 3b58eede44
commit a9cbad0991
-6
View File
@@ -50,7 +50,6 @@ class Backup extends Action
];
$sleep = 86400; //24 hours
$sleep = 60;
$remote = getDevice('/');
Console::log('[' . $now->format("Y-m-d H:i:s.v") . '] Delaying for ' . $delay . ' setting loop to [' . $next->format("Y-m-d H:i:s.v") . ']');
@@ -62,10 +61,6 @@ class Backup extends Action
$source = $local->getRoot() . '/' . $filename;
$destination = '/' . $key . '/' . $filename;
// for ($i = 0; $i < 1000; $i++) {
// file_put_contents($local->getRoot() . '/' . $i . '.txt', '');
// }
$stdout = '';
$stderr = '';
@@ -76,7 +71,6 @@ class Backup extends Action
$stderr
);
try {
if (!$local->exists($source)) {
continue;