문제

I have a site backup script that I am using, and it's working fine - apart from one issue. It does not respect and follow folder capitalisation, so "l" and "L" are compressed into one folder. Is there a way around that? The function is below.

Many thanks!

function BackupSite() {

$archname = './fullsite_' . date("Y-m-d-H-i-s") . '.tar.gz';

$command = 'tar -';
$command .= '-exclude ' . $archname . ' -czf ' . $archname . ' .';

$output = shell_exec($command);

$size = round(filesize($archname)/1000);

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top