SQL Database Backup Help

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Locked
mbrown174

SQL Database Backup Help

Post by mbrown174 »

Hello,
Just started using CMS made simple and i was wondering if it were possible from the backend of the cms to backup my database - including images, files, etc. I have seen a how to guide on backing up the database - but I didnt understand this. Is there not a simpler way using the backend?
Thanks!!!
Pierre M.

Re: SQL Database Backup Help

Post by Pierre M. »

Hello,

I'm not sure I remember well, but I think there is an "archiver" module which is outdated, somewhat deprecated and doesn't work with latest stable CMSms today. I hope I'm wrong.

But although not integrated there still is a somewhat easy and safe way to back up every thing : clear the cache, dump the database within CMSms php files and tar the whole w3 root folder to retrieve at home.

Pierre M.
mbrown174

Re: SQL Database Backup Help

Post by mbrown174 »

hello. i should have been more clear - i intend to use the backup on a new server. I heard that the sql could be taken from the backend, then all I would have to do is reinstall the cms on another server and then import the database!
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: SQL Database Backup Help

Post by Ted »

There are a few backup modules on the dev forge (I searched for backup on dev.cmsmadesimple.org), but none of them seem up to date and do both the files and database.

Honestly, I would try and do it the old fashioned way if possible...  backup the database using phpmyadmin and download/upload the files.  It's the safest thing to do and you know it's done properly that way.
sblop
New Member
New Member
Posts: 9
Joined: Sun Jan 20, 2008 1:56 pm

Re: SQL Database Backup Help

Post by sblop »

bump...

Just to hear if there anyone else have a good idear about backup. - I personally use "file backup" for the files, and I would love to have a backend database backup utillity. But they all seems outdated? Or am I wrong?

Greetings.

Benjamin

Maritime-billeder.dk
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

Re: SQL Database Backup Help

Post by blast2007 »

sblop wrote: I personally use "file backup" for the files
Yeah, a good backup module  ;D
sblop wrote: and I would love to have a backend database backup utillity. But they all seems outdated? Or am I wrong?
I'm currently using MysqlDump for remote db backup, and it works like a charm.

Regards.
blast
sblop
New Member
New Member
Posts: 9
Joined: Sun Jan 20, 2008 1:56 pm

Re: SQL Database Backup Help

Post by sblop »

Then I have a problem....
- Do any of you have any idear what is happening here?

I have tried making the folder "mysqldump" in my admin folder (ofcouse a diffrent name than admin)  under backups and in the root, and in admin/backups/mysqldump, but none of them works.


Task started

Executing...
(username and password not displayed)

'/mysqldump' --user=######## --password=######## --host=(removed) --opt --verbose --compatible=mysql40 --default-character-set=latin1 sbp_cmsms 'cmsms_additional_htmlblob_users' 'cmsms_additional_htmlblob_users_seq' 'cmsms_additional_users' 'cmsms_additional_users_seq' 'cmsms_admin_bookmarks' 'cmsms_admin_bookmarks_seq' 'cmsms_admin_recent_pages' 'cmsms_admin_recent_pages_seq' 'cmsms_adminlog' 'cmsms_content' 'cmsms_content_props' 'cmsms_content_props_seq' 'cmsms_content_seq' 'cmsms_crossref' 'cmsms_css' 'cmsms_css_assoc' 'cmsms_css_seq' 'cmsms_event_handler_seq' 'cmsms_event_handlers' 'cmsms_events' 'cmsms_events_seq' 'cmsms_group_perms' 'cmsms_group_perms_seq' 'cmsms_groups' 'cmsms_groups_seq' 'cmsms_htmlblobs' 'cmsms_htmlblobs_seq' 'cmsms_intrusions' 'cmsms_intrusions_seq' 'cmsms_module_album_albums' 'cmsms_module_album_albums_seq' 'cmsms_module_album_categories' 'cmsms_module_album_categories_seq' 'cmsms_module_album_category_listings' 'cmsms_module_album_category_listings_seq' 'cmsms_module_album_pictures' 'cmsms_module_album_pictures_seq' 'cmsms_module_archive_item_info_seq' 'cmsms_module_archiver_item' 'cmsms_module_archiver_item_info' 'cmsms_module_archiver_item_info_seq' 'cmsms_module_blogs_categoryprops' 'cmsms_module_bookmarks' 'cmsms_module_bookmarks_categories' 'cmsms_module_bookmarks_categories_seq' 'cmsms_module_bookmarks_seq' 'cmsms_module_bookmarks_to_categories' 'cmsms_module_deps' 'cmsms_module_fb_field' 'cmsms_module_fb_field_opt' 'cmsms_module_fb_field_opt_seq' 'cmsms_module_fb_field_seq' 'cmsms_module_fb_flock' 'cmsms_module_fb_form' 'cmsms_module_fb_form_attr' 'cmsms_module_fb_form_attr_seq' 'cmsms_module_fb_form_seq' 'cmsms_module_fb_ip_log' 'cmsms_module_fb_ip_log_seq' 'cmsms_module_fb_resp' 'cmsms_module_fb_resp_attr' 'cmsms_module_fb_resp_attr_seq' 'cmsms_module_fb_resp_seq' 'cmsms_module_fb_resp_val' 'cmsms_module_fb_resp_val_seq' 'cmsms_module_guestbook' 'cmsms_module_guestbook_post' 'cmsms_module_guestbook_post_seq' 'cmsms_module_guestbook_seq' 'cmsms_module_guestbook_settings' 'cmsms_module_htmlExport' 'cmsms_module_linkmanager_group' 'cmsms_module_linkmanager_group_seq' 'cmsms_module_linkmanager_group_to_link' 'cmsms_module_news' 'cmsms_module_news_categories' 'cmsms_module_news_categories_seq' 'cmsms_module_news_fielddefs' 'cmsms_module_news_fieldvals' 'cmsms_module_news_seq' 'cmsms_module_rss2html_feeds' 'cmsms_module_rss2html_feeds_seq' 'cmsms_module_stat_dnscache' 'cmsms_module_stat_dnscache_seq' 'cmsms_module_stat_ipcache' 'cmsms_module_stat_ipcache_seq' 'cmsms_module_templates' 'cmsms_modules' 'cmsms_permissions' 'cmsms_permissions_seq' 'cmsms_siteprefs' 'cmsms_templates' 'cmsms_templates_seq' 'cmsms_user_groups' 'cmsms_userplugins' 'cmsms_userplugins_seq' 'cmsms_userprefs' 'cmsms_users' 'cmsms_users_seq' 'cmsms_version'>>backups/backup-2008-04-09_17-16-13.sql 2>../modules/MysqlDump/dump-verbose.txt

Output...

sh: /mysqldump: No such file or directory

Task completed

-- Linux MysqlDump 1.2.3 module [ --opt --verbose --compatible=mysql40 --default-character-set=latin1 ] prefix=cmsms_
-- Filesize : 118 bytes

ERROR : backups/backup-2008-04-09_17-16-13.sql MISSING or TOO SMALL
Last edited by sblop on Wed Apr 09, 2008 3:19 pm, edited 1 time in total.
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

Re: SQL Database Backup Help

Post by blast2007 »

sblop wrote: Then I have a problem....
- Do any of you have any idear what is happening here?

I have tried making the folder "mysqldump" in my admin folder (ofcouse a diffrent name than admin)  under backups and in the root, and in admin/backups/mysqldump, but none of them works.
I can confirm you that mysqldump saves its backup in directory /admin/backups. Admin dir name is fetch from config.php

I think that error can be caused by your hoster php settings, in particular you should check if any of these function is disabled.

exec, show_source, shell_exec, system, popen, proc_open, proc_nice, ini_restore, passthru,dl

If  these parameters are disabled you can't use mysqldump.

Regards
blast
Last edited by blast2007 on Wed Apr 09, 2008 3:31 pm, edited 1 time in total.
alby

Re: SQL Database Backup Help

Post by alby »

sblop wrote: Output...

sh: /mysqldump: No such file or directory
You must enter absolute path of mysqldump or you must sure that it's in PATH variable, example:

Code: Select all

# whereis mysqldump
mysqldump: /usr/bin/mysqldump /usr/share/man/man1/mysqldump.1.gz
Check for module configuration (and display module help for other info)

Alby
sblop
New Member
New Member
Posts: 9
Joined: Sun Jan 20, 2008 1:56 pm

Re: SQL Database Backup Help

Post by sblop »

Thanks for both your answers.
The problem was the path to mysqldump.
I dont know the path, so I have written to my host, so they can answer me.

Greetings.
Benjamin.


alby wrote:
sblop wrote: Output...

sh: /mysqldump: No such file or directory
You must enter absolute path of mysqldump or you must sure that it's in PATH variable, example:

Code: Select all

# whereis mysqldump
mysqldump: /usr/bin/mysqldump /usr/share/man/man1/mysqldump.1.gz
Check for module configuration (and display module help for other info)

Alby
Locked

Return to “The Lounge”