shivam4u
(Shiv Charan Panjeta)
December 30, 2012, 2:39pm
1
Dear All,
I have created Backup/Restore module. I have been using it for all my apps for quite sometime now. It saves lot of time.
I have not added security or access control as of now. You can add that if required for live websites.
unzip the attached code under /protected/modules/
Add following code in config main.php under modules
'backup',
You can specify path for backup files.
'backup'=> array('path' => __DIR__.'/../backup/' ),
Thats it , now open your app with /backup appended to home url.
Thanks and Regards,
Shiv
3654
backup.zip
Raoul
(Manu34)
December 30, 2012, 9:59pm
2
can’t find any “attached code”
jacmoe
(Jacob Moen)
December 30, 2012, 10:35pm
3
He said "created" not "attached"
shivam4u
(Shiv Charan Panjeta)
December 31, 2012, 7:26am
4
I did attach. But i cannot see it now. Let me try again!
jacmoe
(Jacob Moen)
January 1, 2013, 10:10am
5
Very, very useful! Thanks
Raoul
(Manu34)
January 1, 2013, 12:26pm
6
Hi Shiv,
this module is indeed very useful and maybe that could be intresting to share it in the Yii Extension section.
I made some tests and creating/restoring db backup seems to work ok. Maybe you could set the default layout to "column2" to ensure the menu is displayed.
Another problem I found is the upload backup. It refers to widget GxActiveForm … but this widget is not provided.
Thanks for sharing …
jacmoe
(Jacob Moen)
January 1, 2013, 12:34pm
7
GxActiveForm probably belongs to Gii Extended extension ?
shivam4u
(Shiv Charan Panjeta)
January 2, 2013, 12:41pm
8
Raoul:
Hi Shiv,
this module is indeed very useful and maybe that could be intresting to share it in the Yii Extension section.
I made some tests and creating/restoring db backup seems to work ok. Maybe you could set the default layout to "column2" to ensure the menu is displayed.
Another problem I found is the upload backup. It refers to widget GxActiveForm … but this widget is not provided.
Thanks for sharing …
Thanks Raoul for your suggestions. Yes right, I am using GxActiveForm.
I shall do a clean install on latest Yii and make it ready again!
Regards,
Shiv
shivam4u
(Shiv Charan Panjeta)
January 2, 2013, 1:23pm
9
I have removed reference to external components. New zip would work on clean Yii installation.
Thanks,
Shiv
jacmoe
(Jacob Moen)
January 2, 2013, 1:32pm
10
Great!
I also believe that you should be able to submit it as an extension by now.
shivam4u
(Shiv Charan Panjeta)
January 2, 2013, 1:38pm
11
Thanks :-). Yes, I am about to submit my first extension.
Raoul
(Manu34)
January 2, 2013, 1:57pm
12
yessss … !! I see it is published now ! I’ll download it and test asap.
Thanks Shiv
Raoul
(Manu34)
January 5, 2013, 2:58pm
13
Hi Shiv,
your backup extension works fine, no more dependencies with GxActiveForm or any other missing stuff.
Note that in order for the menu to be displayed the layout must be //layouts/column2
Thanks for sharing
shivam4u
(Shiv Charan Panjeta)
January 7, 2013, 12:15pm
14
Raoul:
Hi Shiv,
your backup extension works fine, no more dependencies with GxActiveForm or any other missing stuff.
Note that in order for the menu to be displayed the layout must be //layouts/column2
Thanks for sharing
Thanks again !. I have added that in my 1.1 update.
Regards,
Shiv