Skip to content

Instantly share code, notes, and snippets.

@MaraScott
Created February 26, 2013 03:58
Show Gist options
  • Select an option

  • Save MaraScott/5035770 to your computer and use it in GitHub Desktop.

Select an option

Save MaraScott/5035770 to your computer and use it in GitHub Desktop.
Name : zipit('pathToSourceFolder', 'pathToZipFile') - Language : PHP - type : cron - platform : linux - tag : backup
<?php
/* BACKUP a file
* HZip.class.php
* see: https://gist.github.com/davask/5035745
*/
include(__DIR__.'/HZip.class.php');
HZip::zipDir('pathToSourceFolder', 'pathToZipFile');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment