Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

  Yii::import('ext.yii-database-dumper.SDatabaseDumper');
  $dumper = new SDatabaseDumper;
  // Get path to backup file
  $file = Yii::getPathOfAlias('webroot.protected.backups').DIRECTORY_SEPARATOR.'dump_'.date('Y-m-d_H_i_s').'.sql';

  // Gzip dump
  if(function_exists('gzencode'))
      file_put_contents($file.'.gz', gzencode($dumper->getDump()));
  else
      file_put_contents($file, $dumper->getDump());

About

Yii MySQL structure and data dumper

Resources

Stars

17 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages