A project i am currently working on requires the ability to export the full database with a click of a button in an admin area of a website. I know theres plenty of packages out there for automatic backups to dropbox etc.. But thats not what is required for this project.
I was just wondering is there a fast and easy way to just dump the full database in laravel 4?
I can handle the zipping and downloading of the file once its been dumped just wondering if theres an easy way to dump a database with laravel 4.
Any help appriciated
Thanks
Although packages like https://github.com/heybigname/backup-manager are perfect for backing up a database. They offer a lot more than i needed for this particular project.
In the end i used https://github.com/bradcornford/Backup which is a great package for backing up your database on the fly with one simple method.
Related
I have a web application written on Code Igniter and almost ready for the release.
I'm looking into ways to do "automatic" updates for the clients.
Now there are going to be versions of the application on which the users will choose to update and when to do it.
I'm curious on how to update the files for the user.
What i used to do before using a framework i used to make a zip file of the new-edited files store it on an FTP and on the user side when he updated i just unziped the file and replace the ones on his side.
For the database schema and other updates i intend to keep a file with the required queries and run during the update.
Should i go with that way or is there something other that i can implement on Code Igniter?
A more straight forward road?
Also i'm still figuring out the part where a user will have to update from say version 1.0.0 to 1.0.3 (2 or 3 versions apart) and the requirements on the files side but on the database also.
Thank you
If you are willing to put it under version control with Git, you can use PHPloy to push only the latest change to the server through FTP. Check it out on Github: https://github.com/banago/PHPloy
Disclaimer: I've written PHPloy
My Wordpress site has some strange adware. Sometimes it redirects to www.usgrants.org , and at one point there was some random text at the bottom of each page that looked like search engine keywords, but that text seemed to have disappeared for now.
So instead, I've decided to back up my blog, and just start fresh with my database, and just reinstall the plugins that I really need.
The question is, how can I do this without losing my content?
I am guessing it is just as easy as exporting my SQL database, deleting everything, reinstalling WP, and then importing it, but I'm not sure if that's the most efficient way.
I'm also looking into Duplicator, but I don't know if that would also migrate the problematic add-ons (I don't even know what the cause of it is).
I'd really love to keep my Thesis theme as well, but I'm not sure if my custom code is causing the problem.
I appreciate the help!
First and foremost if you are still able to get into the admin area of your site, I would install WordFence (http://wordpress.org/plugins/wordfence/), do a complete scan of your site, and make the recommended fixes. Additionally, if you can spring for it, I would get the premium version as it will scan all files on the server, not just in the wordpress install. (I think it's like $40 per year per domain & gets cheaper the more you add.) This option may rescue your current site without the need to start fresh.
That said, if you have malware in your site, it's very difficult to know for sure that it's fixed for good. Depending upon how it's written, it can lie dormant for a while and come back when you least expect it so starting over may be the best idea. Regardless, I would use WordFence to scan first before you start fresh since it will also scan your database to see if anything ended up in one of your tables there. The free version will do that too.
Then you can either export and save your database from MYSQL or you can also use the wordpress export / import tool to manage the transfer of your content. Its a pretty simple process.
To export your site data using the included WP Export tool.
1. Login to the backend admin
2. Navigate to tools
3. Click on 'Export'
4. Select the All Content option and then press the 'Download Export File' button.
5. This will download an XML file that you can import on your new instance of WP.
To import your site data using the WP Import tool.
1. Login to the backend admin
2. Navigate to tools and click import
3. Select 'WordPress' from the list
4. Install the importer
5. Click Activate and Run Plugin
6. Choose the XML file you exported and then select Upload File and Import.
Hope this helps!
I want to just trnasfer the data from orange hrm 2.6.3 to 2.7.1.
I found export data functionality of the employees from Admin -> Data Import/Export
And I found that the data are imported in 2.7.1 from PIM -> configuration -> data import/export but in the sample csv i found that there are lots of columns like its all the account details,nationality,country which are not the field in the exported csv.
Or is there any other way to transfer the data from 2.6.3 to 2.7.1 using system or direct from database.
Please suggest me if anyone has any idea.
thanks in advance
This is the instruction.
in your old PC, go to localhost/xampp.
then go to phpmyadmin section.
and click on Export DataBase, and export your DataBase and save the file in your computer.
go to new pc and access the localhost/xampp.
then go to phpmyadmin section and import your database.
Finish
This is the "backend" way. I don't have any special method for OrangeHRM data migration, so I just use the usual database dump.
Basically, I'll dump the database/table first. Then, I'll drop the current database/table (make sure to do a backup copy) before importing a new one.
If you are importing a database, try to use the same name as the old one or else you might need to delete the symfony/cache/orangehrm folder,the lib/confs/Conf.php and the symfony/config/databases.yml file and start a new installation. OrangeHRM uses YAML library for data serialization.
Not sure if there are a lot of differences in terms of db structure between these two versions.
I'm working for a company which is using PHP. There are different CMS Systems being used like Wordpress or Magento.
We are working with git having our own repository server and we have to deploy to different servers our different customers.
I've set up a deploymentscript using capistrano which works fine but the Database Synchronisation is quite tricky.
Imagine the live-database contains user data and I have to create some new features after the site already launched and there are loads of sql data within the database already. I personally work with a dummy database since I don't need any customer information.
How are you PHP geeks are deploying your databases? I don't want to change the contents but only migrate new or modified tables. I'm looking for a complete deployment solution for that. I'm also open for other options besides capistrano if needed. Especially with Magento I had serious problems to keep my database sync..
Any help is appreciated.
Recently I have discovered this project: http://dbv.vizuina.com/, but I don't have used it, otherwise Symfony has a similar feature called migrations and it works very well.
I am using PHP and Mysql
I have PHP script in which I rollback all the data in the database such data all the old value be reset to the database if update is done, and all new value gets deleted if new insert has been done.
Now my goal is to perform the same process with files/folders associated with the changes done, I am not able to create an idea for doing the rollback job with the files/folders associated with the Changes.. So can anyone of u help me or direct me to get the best idea?????
EDITED
I want this functionality in one of my Joomla Component.. I have to it all through scripting
When it comes to managing histories and providing the functionality to "rollback" to a specific site-wide snapshot, you are probably well-advised to be looking into Source Code Management systems/techniques such as GIT, Subversion, etc.
These systems seem to be the industry standard for managing source code development, and should provide the functionality of which you speak.
If you are looking to create a self-contained Version Control system for these files and folders, then you will either need to custom create one, whereby any change to a file also records the contents of that file (and the change date/time) into a MySQL Table, or you may need to look at adapting an existing PHP/MySQL Version Control system as a component of your product (respecting, of course, their licensing terms).
I would recommend performing a Google Search for "php version control", and then looking through the results for an option which best suits your needs.
May be you should try to use the native api of the host operating system