Can anybody see a problem with the below PHP code? Or have any ideas to troubleshoot a solution as to why whenever I download the backup file.tar.gz and try to open it using 7zip on windows... that I keep being told CRC failed, file is broken?
system("tar -cvzwf ".escapeshellarg($backup_file_location)." ".escapeshellarg($folder_to_backup));
I am taring my public_html directory to a backup folder that is beneath that directory (not accessible via the web).
Everything seems to flow smoothly but upon opening the files I keep getting an error.