It is currently Fri Sep 05, 2008 4:58 pm

New component - SQL Dumper

Discuss the development and implementation of Joomla! components here.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.

New component - SQL Dumper

Postby ivo.apostolov on Thu Mar 23, 2006 10:48 pm

I have integrated to Joomla! a simple script that allows you to IMPORT and EXPORT databases. Really easy to use. With two clicks you create backup, with another two you restore it.

It EXPORTS and IMPORTS sql files with ANY size.

All files are saved in administrator/backups/ folder and if you want to restore (import a file) your database, the file should also be there.

The component is secured and therefore you need to login when manipulating the data.
Take a look at it and tell me what you think:

Edit 06 June 2007:
New version 2.0 is available. It now works with any host and with any database charset. I also prepared a documentation, so please read it (one page only).

Documentation:
http://joomlacode.org/gf/download/frsre ... tation.pdf
Component download:
http://joomlacode.org/gf/download/frsre ... 2.0%5D.zip

Update from version 1.0: Uninstall the old component and install the new package based on the instructions in the Documentation.

Thanks for using it.
Last edited by ivo.apostolov on Wed Jun 06, 2007 12:33 am, edited 1 time in total.
Ivo Apostolov * www.ivoapostolov.eu - You can't read it.
The last Jedi Knight - banned
User avatar
ivo.apostolov
Joomla! Ace
Joomla! Ace
 
Posts: 1851
Joined: Thu Aug 25, 2005 2:33 pm
Location: Sofia, Bulgaria

Re: New component - SQL Dumper

Postby pangolin123 on Fri Mar 24, 2006 6:04 pm

man, that is awesome, just uploaded and currently testing now.. Good job, mate.
pangolin123
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 29
Joined: Wed Jan 25, 2006 6:22 am

Re: New component - SQL Dumper

Postby ivo.apostolov on Fri Mar 24, 2006 6:15 pm

Thanks :)
Ivo Apostolov * www.ivoapostolov.eu - You can't read it.
The last Jedi Knight - banned
User avatar
ivo.apostolov
Joomla! Ace
Joomla! Ace
 
Posts: 1851
Joined: Thu Aug 25, 2005 2:33 pm
Location: Sofia, Bulgaria

Re: New component - SQL Dumper

Postby twincascos on Fri Mar 24, 2006 11:13 pm

this seams like something that would be built in to Joomla. is it already there?
maybe just not obviously?

Are there other back up components online?

This Sql dump component ,
- does it or will it have an admin config to set up an automated 3 tier DB backup?
- could I define where to send the back up? local folder or distant server?
- could you define the compression type and level through admin?
- if saving on distant server could the file be encrypted befor sending?

These were my first thoughts when I read your post. Now I'll go install and finout,, :)
User avatar
twincascos
Joomla! Intern
Joomla! Intern
 
Posts: 83
Joined: Fri Mar 17, 2006 12:20 am
Location: Barcelona

Re: New component - SQL Dumper

Postby ivo.apostolov on Fri Mar 24, 2006 11:28 pm

Hmz, don't know if there should be a builtin backup component

There are other backup components (database backup), try on the extension site.

The component
- Could you explain what exacly do you mean?
- No, the backup is saved in the administrator/backup folder. Anyway it can be downloaded directly with the component,, after it is created.
- The compression type is only Gzip currently, you can define compression level.
- Currently not supported.

Hope this helps. This component is not aiming to be THE BEST solution, but it's still one of the most easy and powerful so far.

Another note: I am not the original author of it - as you can see in the extension directory (http://extensions.joomla.org/component/ ... Itemid,35/).
It was written by Sypex, I just modify it a little and integrated it to Joomla! Anyway I can consider and work a bit in the direction of your questions :)

Ivo
Ivo Apostolov * www.ivoapostolov.eu - You can't read it.
The last Jedi Knight - banned
User avatar
ivo.apostolov
Joomla! Ace
Joomla! Ace
 
Posts: 1851
Joined: Thu Aug 25, 2005 2:33 pm
Location: Sofia, Bulgaria

Re: New component - SQL Dumper

Postby malabarka on Sat Mar 25, 2006 12:57 am

My db are not on localserver, so I can't connect to and I have error message:

#2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Is there a way to connect to db is host server is something like db123.somesite.net?
malabarka
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 18
Joined: Tue Dec 13, 2005 6:28 pm

Re: New component - SQL Dumper

Postby ivo.apostolov on Sat Mar 25, 2006 12:59 am

Basicly yes. But you need to change the code in the dumper.php file - where the localhost is set.

I will try to make the next version with an option to select the host.

Btw. the dumper file is in the Joomla! root after install
Ivo Apostolov * www.ivoapostolov.eu - You can't read it.
The last Jedi Knight - banned
User avatar
ivo.apostolov
Joomla! Ace
Joomla! Ace
 
Posts: 1851
Joined: Thu Aug 25, 2005 2:33 pm
Location: Sofia, Bulgaria

Re: New component - SQL Dumper

Postby eddyyanto on Sat Mar 25, 2006 1:08 am

tried on local testing server and works fine.
1 question: can we just backup those data that have been modified in the specific date?
+ what's great about open-source? kindness of sharing
+ http://www.eddyyanto.com
User avatar
eddyyanto
Joomla! Guru
Joomla! Guru
 
Posts: 905
Joined: Tue Jan 17, 2006 7:42 am

Re: New component - SQL Dumper

Postby ivo.apostolov on Sat Mar 25, 2006 1:21 am

No the option is for whole database.
Ivo Apostolov * www.ivoapostolov.eu - You can't read it.
The last Jedi Knight - banned
User avatar
ivo.apostolov
Joomla! Ace
Joomla! Ace
 
Posts: 1851
Joined: Thu Aug 25, 2005 2:33 pm
Location: Sofia, Bulgaria

Re: New component - SQL Dumper

Postby PhilTaylor-Prazgod on Sat Mar 25, 2006 10:53 am

storing of backups in /administrator/backup/ is a VERY bad idea.  All I have to do it guess the filename for the backup and then I can download your whole database including usernames and md5 passwords, along with all your content and any other goodies your database has in it

Secure your backups directory with htaccess or download and remove backups after they are made
Last edited by PhilTaylor-Prazgod on Sat Mar 25, 2006 11:03 am, edited 1 time in total.
Phil Taylor - Full Time Expert Joomla-Only Commercial Developer
http://www.phil-taylor.com/
http://www.joomla-expert.com/ Joomla Security Auditing and much more
User avatar
PhilTaylor-Prazgod
Joomla! Ace
Joomla! Ace
 
Posts: 1008
Joined: Sat Aug 20, 2005 12:32 pm
Location: Ledbury, UK

Re: New component - SQL Dumper

Postby dj_hardbeat on Mon Apr 10, 2006 7:02 pm

I sure like to try your component, but after a succesfull installation, going to the component, a 404 page appears..... any clue?  :o
dj_hardbeat
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 9
Joined: Mon Nov 28, 2005 8:16 pm

Re: New component - SQL Dumper

Postby ivo.apostolov on Mon Apr 10, 2006 8:18 pm

Yes, your main joomla directory is without rights
Ivo Apostolov * www.ivoapostolov.eu - You can't read it.
The last Jedi Knight - banned
User avatar
ivo.apostolov
Joomla! Ace
Joomla! Ace
 
Posts: 1851
Joined: Thu Aug 25, 2005 2:33 pm
Location: Sofia, Bulgaria

Re: New component - SQL Dumper

Postby dj_hardbeat on Wed Apr 12, 2006 6:05 am

Yep! That did the trick! Thanks!  ;D

I can no see it is an easy, fast, good component which simply does do the trick of backup and restore  8)

I now am wondering how I can keep my site safe. Can you explain this to a newbe? I'm not sure the rights settings are going to be a problem? Or keeping the backupfiles in the /backups directory?

Please advise...
dj_hardbeat
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 9
Joined: Mon Nov 28, 2005 8:16 pm

Re: New component - SQL Dumper

Postby ivo.apostolov on Fri Apr 14, 2006 3:20 pm

I didn't write anywhere that this component is backing up the whole site or whatever. It has one goal, which is in its NAME - it dumps any databases, doesn't matter of the size, encoding etc.
Ivo Apostolov * www.ivoapostolov.eu - You can't read it.
The last Jedi Knight - banned
User avatar
ivo.apostolov
Joomla! Ace
Joomla! Ace
 
Posts: 1851
Joined: Thu Aug 25, 2005 2:33 pm
Location: Sofia, Bulgaria

Re: New component - SQL Dumper

Postby jimesmythe on Tue Jun 06, 2006 2:26 pm

when i installed the component and ran it. i get the error:

#2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

after i put in my username and password.

JimeSmythe
----------------------------------------------------------
Jimmy Smith
Network Engineer - Fiber Optics Specialist
jimesmythe
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 41
Joined: Thu May 18, 2006 1:59 pm

Re: New component - SQL Dumper

Postby ivo.apostolov on Tue Jun 06, 2006 5:23 pm

The component currently work only if the MySQL host is 'localhost'.

Is your MySQL host 'localhost' or something else?
Ivo Apostolov * www.ivoapostolov.eu - You can't read it.
The last Jedi Knight - banned
User avatar
ivo.apostolov
Joomla! Ace
Joomla! Ace
 
Posts: 1851
Joined: Thu Aug 25, 2005 2:33 pm
Location: Sofia, Bulgaria

Re: New component - SQL Dumper

Postby jimesmythe on Tue Jun 06, 2006 6:53 pm

it is hosted with http://www.omnis.com
----------------------------------------------------------
Jimmy Smith
Network Engineer - Fiber Optics Specialist
jimesmythe
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 41
Joined: Thu May 18, 2006 1:59 pm

Re: New component - SQL Dumper

Postby ivo.apostolov on Tue Jun 06, 2006 7:06 pm

Is your database host 'localhost' or not?
Ivo Apostolov * www.ivoapostolov.eu - You can't read it.
The last Jedi Knight - banned
User avatar
ivo.apostolov
Joomla! Ace
Joomla! Ace
 
Posts: 1851
Joined: Thu Aug 25, 2005 2:33 pm
Location: Sofia, Bulgaria

Re: New component - SQL Dumper - working on remote DB

Postby gillesg on Wed Jun 07, 2006 8:38 pm

Hi all,

Made a simple change in dumper.php file to make it works with a remote DB.
Here is a patch for dumper.php file located in the root directory of Joomla! installation.
Code: Select all
define('DBHOST', 'localhost:3306');

by
Code: Select all
require_once( './configuration.php' );
define('DBHOST', $mosConfig_host);


And sudenly it starts working.

Cheers.

Gillesg
gillesg
Joomla! Fledgling
Joomla! Fledgling
 
Posts: 1
Joined: Wed Jun 07, 2006 8:31 pm

Re: New component - SQL Dumper

Postby ivo.apostolov on Wed Jun 07, 2006 9:08 pm

Thank you man, will update the package.
Ivo Apostolov * www.ivoapostolov.eu - You can't read it.
The last Jedi Knight - banned
User avatar
ivo.apostolov
Joomla! Ace
Joomla! Ace
 
Posts: 1851
Joined: Thu Aug 25, 2005 2:33 pm
Location: Sofia, Bulgaria

Re: New component - SQL Dumper

Postby mcgrelio on Fri Jul 28, 2006 2:32 pm

I've installed the component with no errors but when i try to access it i only get a page saying:

We're sorry but the page you requested could not be found.
Return to site

Error 404

I've read about rights on Joomla root dir. I've tryed chmodding 777 with no success.

Any idea? Thx a lot!
Cya ;)

"An expert is one who knows
more and more about less and less
until he knows absolutely everything about nothing"
User avatar
mcgrelio
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 30
Joined: Sun Nov 20, 2005 11:47 am

Re: New component - SQL Dumper

Postby ivo.apostolov on Fri Jul 28, 2006 2:49 pm

During install, the component tries to write in the root directory, if it doesn't success the error appears
Ivo Apostolov * www.ivoapostolov.eu - You can't read it.
The last Jedi Knight - banned
User avatar
ivo.apostolov
Joomla! Ace
Joomla! Ace
 
Posts: 1851
Joined: Thu Aug 25, 2005 2:33 pm
Location: Sofia, Bulgaria

Re: New component - SQL Dumper

Postby alianzasoft on Wed Aug 16, 2006 2:37 am

I installed the component and as I try to log in, i get the following message:

#2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

What am I doing wrong?
alianzasoft
Joomla! Fledgling
Joomla! Fledgling
 
Posts: 4
Joined: Wed Jul 26, 2006 12:19 am

Re: New component - SQL Dumper

Postby ivo.apostolov on Wed Aug 16, 2006 3:06 am

Is your host localhost?
Ivo Apostolov * www.ivoapostolov.eu - You can't read it.
The last Jedi Knight - banned
User avatar
ivo.apostolov
Joomla! Ace
Joomla! Ace
 
Posts: 1851
Joined: Thu Aug 25, 2005 2:33 pm
Location: Sofia, Bulgaria

Re: New component - SQL Dumper

Postby cfcccp on Tue Nov 21, 2006 9:44 am

Hi Ivo.

I am successfully installed component and made no compression backup. But I can not find sql file. Where is it stored?  ???

PS Localhost
cfcccp
Joomla! Fledgling
Joomla! Fledgling
 
Posts: 1
Joined: Tue Nov 21, 2006 9:33 am

Re: New component - SQL Dumper

Postby ivo.apostolov on Thu Nov 23, 2006 2:15 pm

administrator/backups
Ivo Apostolov * www.ivoapostolov.eu - You can't read it.
The last Jedi Knight - banned
User avatar
ivo.apostolov
Joomla! Ace
Joomla! Ace
 
Posts: 1851
Joined: Thu Aug 25, 2005 2:33 pm
Location: Sofia, Bulgaria

Re: New component - SQL Dumper

Postby freerider on Wed Jan 03, 2007 9:27 am

In the process of creating a backup, this error occured.  :(

A2007.01.03 10:18:53
Возникла ошибка!
fopen(administrator/backups/dumper.cfg.php) [function.fopen]: failed to open stream: Permission denied (2)


it seems that there should be a "dumper.cfg.php" file in that directory, but it doesnt exists

any ideas????
User avatar
freerider
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 24
Joined: Wed Apr 12, 2006 10:42 am

Re: New component - SQL Dumper

Postby ivo.apostolov on Wed Jan 03, 2007 9:29 am

Yes there should be. It seems, that your administrator/backups directory is without write permissions
Ivo Apostolov * www.ivoapostolov.eu - You can't read it.
The last Jedi Knight - banned
User avatar
ivo.apostolov
Joomla! Ace
Joomla! Ace
 
Posts: 1851
Joined: Thu Aug 25, 2005 2:33 pm
Location: Sofia, Bulgaria

Re: New component - SQL Dumper

Postby freerider on Wed Jan 03, 2007 9:58 am

Thank you
changing write permissions on /backup dir does the trick....
User avatar
freerider
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 24
Joined: Wed Apr 12, 2006 10:42 am

Re: New component - SQL Dumper

Postby dukeofiris on Sat Jan 06, 2007 8:01 pm

Why does it tell me Error found: 972


Database Backup `dbxxxxxxxxxx` created.
Database size:      xxxxxx Mb
File Size: xxxxxxxx Mb
Tables manipulated: xxxxxx
Error found:  972

Thanks!

Aside from that it was easy install and it seems to work! Good work for BG guy. Mnogo dobre!

Alex
dukeofiris
Joomla! Fledgling
Joomla! Fledgling
 
Posts: 2
Joined: Sat Jan 06, 2007 7:57 pm

Next

Return to Components

Who is online

Users browsing this forum: No registered users and 1 guest