Answer the question
In order to leave comments, you need to log in
Why is the archive not being created?
On the hosting, a copy of the files and site database is created using the system () commands;
Code snippet:
$cmd = "cd ".$this->getProjectDir()."/folders && tar rvf public_html.tar ".$dir['public_html'];
system($cmd, $ret);
$cmd = "cd ".$this->getProjectDir()." && find . -type f -exec tar rvf ".$this->archive.".tar '{}' \;";
system($cmd, $ret);
$cmd = "cd ".$this->getProjectDir()." && gzip ".$this->archive.".tar";
system($cmd, $ret);
Answer the question
In order to leave comments, you need to log in
try to make an archive in the terminal without PHP - will it be the same?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question