<![CDATA[ Support/Comments for Modbak - My Forums]]> https://forums.modx.com/thread/?thread=45127 <![CDATA[Re: Support/Comments for Modbak]]> https://forums.modx.com/thread/45127/support-comments-for-modbak?page=5#dis-post-474155
Thanks]]>
dubbs Aug 06, 2013, 10:40 AM https://forums.modx.com/thread/45127/support-comments-for-modbak?page=5#dis-post-474155
<![CDATA[Re: Support/Comments for Modbak]]> https://forums.modx.com/thread/45127/support-comments-for-modbak?page=5#dis-post-259796 - Changed ’site_name’ in ’site_url’ due to an error with Russian letters
- Due to an error 500 added date_default_timezone_set ( ’Europe / Moscow’);]]>
prayboy Jul 22, 2009, 06:01 AM https://forums.modx.com/thread/45127/support-comments-for-modbak?page=5#dis-post-259796
<![CDATA[Re: Support/Comments for Modbak]]> https://forums.modx.com/thread/45127/support-comments-for-modbak?page=5#dis-post-259795
I have Modbak 0.9.4 on MODx 0.9.6.1p2 and I get this error message after a little moment when I click the "generate" button :

Error while inserting event log into database.


In my "_backup" folder, there are the .zip generated and the .sql file.


I’ve seen that some people have the same problem, have you fixed it yet ?

That’s sad because ModBak is exactely what I need !

Thanks in advance.


]]>
BlueIndigo Jul 09, 2008, 07:00 AM https://forums.modx.com/thread/45127/support-comments-for-modbak?page=5#dis-post-259795
<![CDATA[Mod Back issues]]> https://forums.modx.com/thread/45127/support-comments-for-modbak?page=4#dis-post-259794
I’m a big fan of ModBak, but I’m about to pull out my hair right now. I’ve got a site running modx 0.9.6.1 rev3118 and I can not get modBak to work.

I’ve installed literally every version and I have the same problems.

When I run the module, the a screen that says "please wait while modX loads the screen". It just stays there. But I can click the generate button.

Once I click the generate button, it seems to be working, but then the main frame in ModX just goes blank and nothing else happens.

When I look in the backup directory, there is a file that seems to be complete. However, its named "tmpbackup.zip". Then when I go back and run the module, there are no backups listed in the screen.

HELP!! smiley What’s going on here. I’ve tried version 0.7 up to the current 0.9.4 and they all do the same thing. Am I missing some configuration setting?

Thanks for the help. I’d like to keep what hair I have left. smiley

Justin
]]>
jknupp May 15, 2008, 10:28 PM https://forums.modx.com/thread/45127/support-comments-for-modbak?page=4#dis-post-259794
<![CDATA[Re: Support/Comments for Modbak]]> https://forums.modx.com/thread/45127/support-comments-for-modbak?page=4#dis-post-259793 Taff Apr 16, 2008, 08:11 AM https://forums.modx.com/thread/45127/support-comments-for-modbak?page=4#dis-post-259793 <![CDATA[Re: Support/Comments for Modbak]]> https://forums.modx.com/thread/45127/support-comments-for-modbak?page=4#dis-post-259792

]]>
spackko Apr 16, 2008, 07:18 AM https://forums.modx.com/thread/45127/support-comments-for-modbak?page=4#dis-post-259792
<![CDATA[Re: Support/Comments for Modbak]]> https://forums.modx.com/thread/45127/support-comments-for-modbak?page=4#dis-post-259791 Taff Apr 16, 2008, 07:05 AM https://forums.modx.com/thread/45127/support-comments-for-modbak?page=4#dis-post-259791 <![CDATA[Re: Support/Comments for Modbak]]> https://forums.modx.com/thread/45127/support-comments-for-modbak?page=4#dis-post-259790 Ive set up a cron job, that every morning backups the db:

#!/bin/bash

## setup date
suffix=`date +%Y%m%d`
##define the destination directory
dest=logs
##define a thing to do
cmd='/usr/bin/mysqldump'

## create directory in destination path 
## name the created directory e.g. 20080431
path="${dest}/${suffix}"
mkdir -p ${path}

##go to that directopy
cd ${path}

## dump the required databases
## insert here
## <db-adress> e.g. mysql5.mydomain.com
##
## <db-user> johndoe
## pls note that there thre is no space between the -u and the username
## eg. -ujohndoe
##
## <db-password> database password
## 
## pls note that there thre is no space between the -p and the password
## eg. -pverysecret
##
## <filename>
## a senseful name for your db backup eg yourdomain.com.sql
##
mysqldump -h <db-adress> --all-databases -u<dbuser> -p<db-password> --add-drop-table --create-options > <filename>

##
## after dumping zip every file created in that directory

gzip *

## if you want you can
## delete old dumps (retain 5 days)
find ${dest} -mtime +5 -exec rm {} \;


The only thing you then hve to do on a regular basis is to ftp the created directories to a local hd.

For security reasons the script and the dumps should reside above the root directory]]>
spackko Apr 16, 2008, 01:46 AM https://forums.modx.com/thread/45127/support-comments-for-modbak?page=4#dis-post-259790
<![CDATA[Re: Support/Comments for Modbak]]> https://forums.modx.com/thread/45127/support-comments-for-modbak?page=4#dis-post-259789 Quote from: ram at Jul 31, 2007, 03:16 PM

Error message and exit itself comes from line 1293 to 1296 of /manager/includes/document.parser.class.inc (MODx 0.9.6).

if (!$ds) {
            echo "Error while inserting event log into database.";
            exit();
        }


In testing I commented this out which resolved the issue, as well as allowing the DB to be added to the .zip archive again (it hasn’t done that for a while on any of my sites).

Obviously this really isn’t the way to deal with these bugs in a sensible fashion.

So I suppose the more pertinent question is how do we get the event inserted into the database successfully, and therefore remove the error message?

I would be interested in finding out what people are using to backup sites currently. This seems to work in Firefox if you ignore the "Please wait while MODx loads the page..." and the "Error while inserting event log into database." but unfortunately not everybody uses Firefox.

In IE I get just the Please wait message and a ’Window is undefined’ from line 176,meaning that creating a backup is impossible.

Up until now I have been the only one periodically creating backups of MODx sites (and I don’t mind the errors) but that looks like it is about to change.

Thanks for any pointers!

Taff

]]>
Taff Apr 16, 2008, 01:01 AM https://forums.modx.com/thread/45127/support-comments-for-modbak?page=4#dis-post-259789
<![CDATA[Re: Support/Comments for Modbak]]> https://forums.modx.com/thread/45127/support-comments-for-modbak?page=4#dis-post-259788
To get it to work you have to change the directory name in module (modbak.module.tpl) in line 44 to:
$modx_backup_dir = $_SERVER['DOCUMENT_ROOT'].'/[b]your-directory[/b]/';


After backup an error is issued: ’can’t write to event log.
Ignore that error.

]]>
spackko Mar 31, 2008, 09:17 AM https://forums.modx.com/thread/45127/support-comments-for-modbak?page=4#dis-post-259788