public function archiveDir($dir, $destination)
    {
        $tar = $this->getTarExecutable();
        $dir = $this->fixTarPath($dir);
        $destination = $this->fixTarPath($destination);
        $this->shell->execute([$tar, '-czp', '-C' . $dir, '-f' . $destination, '.'], null, true);
    }
public function archiveDir($dir, $destination)
    {
        $tar = $this->getTarExecutable();
        $dir = $this->fixTarPath($dir);
        $destination = $this->fixTarPath($destination);
        $this->shell->execute([$tar, '-czp', '-C' . $dir, '-f' . $destination, '.'], null, true);
    }
public function archiveDir ( $ dir , $ destination ) { $ tar = $ this -> getTarExecutable ( ) ; $ dir = $ this -> fixTarPath ( $ dir ) ; $ destination = $ this -> fixTarPath ( $ destination ) ; $ this -> shell -> execute ( [ $ tar , '-czp' , '-C' . $ dir , '-f' . $ destination , '.' ] , null , true ) ; }
Create a gzipped tar archive of a directory's contents.

@param string $dir
@param string $destination
Create a gzipped tar archive of a directory s contents .