Originally Posted by
jwurster
I did get this working after making a couple of mods to the backup_mysite.php file. I had coded a comparable extension for Vanilla forum software and decided to compare the two.
If you edit that file and look in the function Tar_Archive, I added an "@" and then 2 lines of code as follows:
readfile($tar_file);
@unlink($tar_file); /*jimw add @*/
if (strtoupper(substr(PHP_OS, 0, 3)) != 'WIN') touch($tar_file); /*jimw add*/
ob_end_flush(); /*jimw add*/
Then I modified the following line:
$tar = new Tar_Archive("$tar_file"); /*jimw remove $ before new*/
I've attached the modified file.
Bookmarks