Location: PHPKode > scripts > tarX > example_tar.php

  //put this file together with dump_dir.php to new directory inside your webserver root, for exmaple '_dump'
  //and give it (directory) write permissions.
  //Below code will dump all files of the webserver root to _dump/htdocs.tarx.dmp and _dump/htdocs.tarx.tree.
  //Also it will exclude all files and directories from <web root>/sites/default/files.
  tar_x::dumpDirectory(dirname(__FILE__).'/..', array(dirname(__FILE__).'/../sites/default/files'), dirname(__FILE__).'/htdocs.tarx');
  print 'Dump completed';
Return current item: tarX