Yii 1.1: jbackup

Module to manage backups of both the database and file and directory

This module is was based on another I saw in the repository that was done to make database backups but also suited to do file and other options for files


Module with translations in Spanish only

images Demo 1 Demo 2

Note: only been tested with MySQL and yii 1.1 or above


Requirements of using this extension (e.g. Yii 1.1 or above)...


You can download the module from bitbucket Repository, and place it in your modules directory or make clone

You change your config / main and place the following:

..... other parameters
                    'path' => __DIR__.'/../_backup/', //Directory where backups are saved
                    'layout' => '//layouts/_column2', //2-column layout to display the options
                    'filter' => 'accessControl', //filter or filters to the controller
                    'bootstrap' => false, //if you want the module use bootstrap components
                    'download' => true, // if you want the option to download
                    'restore' => true, // if you want the option to restore
                    'database' => true, //whether to make backup of the database or not
                    //directory to consider for backup, must be made array key => value array ($ alias => $ directory)
                       'folder/'=> __DIR__.'/../../folder/',
                    //directory sebe not take into account when the backup
                    //files sebe not take into account when the backup
                    //directory where the backup should be done default Yii::getPathOfAlias('webroot')
......other parameters


Total 4 comments

#15678 report it
shiv at 2013/12/06 05:26am
Good Work!

Good Work !. Thank you !

#13078 report it
Juan David Rodriguez at 2013/05/02 10:05am

is my first contribution ... I have not much experience but thanks for the recommendations :)

#13076 report it
pmaselkowski at 2013/05/02 06:27am
My 2 cents

Looks nice as it allows backup of db and files. But, it could be better if you have created model for backup, and move methods like getPath, getColums, getData... etc into that model. Yii (and generally MVC) prefers fat model and thin controller approach, here is topic about that http://www.yiiframework.com/forum/index.php/topic/5564-fat-model-thin-controller/ This way one could use just your model in application, in your code it is forced to use controller.

Oh, and icons weight ~45kb each, waay too much:)

#13053 report it
bryglen at 2013/04/30 02:35pm

Looks good even though i havent tested yet

Leave a comment

Please to leave your comment.

Create extension
No downloadable files yet