Warning: session_start(): open(/var/lib/php/sessions/sess_9cdieqdl2uaor7k4qpjbdt427i, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
please include function dm_sendFileToOtherMachine. // for chunkSize
svoid dm_retrieveFileFromOtherMachine(S computerID, S remotePath, File f) {
backupFile(f);
long size = toLong(dm_evalOnOtherMachine("fileSize(" + quote(remotePath) + ")");
for (LongRange r : chunks(size, dm_sendFileToOtherMachine_chunkSize)) {
print("Retrieving file chunk " + r + " of " + computerID + ":" + remotePath + " to " + f);
byte[] chunk = dm_evalOnOtherMachine(computerID, "loadBinaryFileChunk_base64(" + quote(remotePath) + ", " + r.start + "L, " + r.end + "L" + r.length() + ")");
saveBinaryFilePart(f, r.start, chunk);
}
truncateFile(f, size);
print("File retrieved: " + f);
}