[3.2][RC] Auto db Backup

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
DSMFool
Registered User
Posts: 3
Joined: Sat Oct 21, 2017 10:31 pm

Re: [3.2][RC] Auto db Backup

Post by DSMFool » Sun Oct 22, 2017 8:03 pm

Hello,

I actually wasn't aware how phpBB was calling the cron jobs. Is it actually modifying a crontab file or is it just an internal phpbb 'cron' function that's called?

Either way, I did notice that it has been executing the cron jobs. It did in fact just require visitors/posts and since I was the only one monitoring the board yesterday these conditions weren't met.

I really want to thank you for your time. I appreciate it a lot.

User avatar
david63
Jr. Extension Validator
Posts: 14559
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Auto db Backup

Post by david63 » Thu Dec 07, 2017 10:18 am

David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20852
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: [3.2][RC] Auto db Backup

Post by RMcGirr83 » Thu Dec 07, 2017 6:45 pm

You can try this

Make a backup of your database before attempting

go into phpmyadmin and into the, usually called, phpbb_ext table. Within it you will see

Code: Select all

pico/autodbbackup
and under ext_active it will be 1, change that to a zero then via FTP delete the entire production folder.

Try your forum again. If you can then login, go into the ACP and under extension choose "delete data" from the autobackup extension and once done remove the extension, again via FTP, from the extension directory.

I just tried these exact steps and was able to get back onto my test forum.

PS you probably should have posted this in the extension support area instead of within this development topic.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
eunaumtenhoid
Registered User
Posts: 741
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [3.2][RC] Auto db Backup

Post by eunaumtenhoid » Fri Dec 08, 2017 1:42 pm

language files changed?
ext_autodbbackup.php >> ext_enable_error.php?
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes

User avatar
david63
Jr. Extension Validator
Posts: 14559
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Auto db Backup

Post by david63 » Fri Dec 08, 2017 2:09 pm

eunaumtenhoid wrote:
Fri Dec 08, 2017 1:42 pm
language files changed?
ext_autodbbackup.php >> ext_enable_error.php?
What does that mean?
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
eunaumtenhoid
Registered User
Posts: 741
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [3.2][RC] Auto db Backup

Post by eunaumtenhoid » Fri Dec 08, 2017 2:22 pm

currently the language file and this ext_enable_error.php? for translation
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes

User avatar
david63
Jr. Extension Validator
Posts: 14559
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Auto db Backup

Post by david63 » Fri Dec 08, 2017 2:38 pm

eunaumtenhoid wrote:
Fri Dec 08, 2017 2:22 pm
currently the language file and this ext_enable_error.php? for translation
Still don't understand
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
eunaumtenhoid
Registered User
Posts: 741
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [3.2][RC] Auto db Backup

Post by eunaumtenhoid » Fri Dec 08, 2017 2:41 pm

in the download, the translation files are different
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes

toastedoat
Registered User
Posts: 2
Joined: Mon Apr 07, 2014 10:14 pm

Re: [3.2][RC] Auto db Backup

Post by toastedoat » Fri Dec 08, 2017 4:56 pm

I ran into the same type of issue after upgrading to 3.2 and forgetting to disable the old version, here is the SQL query that I executed to disable the extension so that I could even get into the board (I use webmin server to connect to the MySQL instance):

select * from phpbb_ext (this got me the extension name in the database)
UPDATE phpbb_ext SET ext_active = 0 WHERE ext_name = 'pico/autodbbackup'

Then I did a manual purge of phpBB3/cache (everything except index.htm)

Obviously you can modify the above for any other extensions causing grief after the upgrade

User avatar
david63
Jr. Extension Validator
Posts: 14559
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Auto db Backup

Post by david63 » Fri Dec 08, 2017 5:38 pm

toastedoat wrote:
Fri Dec 08, 2017 4:56 pm
Obviously you can modify the above for any other extensions causing grief after the upgrade
Unless you know what you are doing running a query like that may well create more problems than it solves.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
Galixte de EzCom
Registered User
Posts: 924
Joined: Mon Oct 04, 2004 11:14 pm
Location: France
Name: Raphaël M.
Contact:

Re: [3.2][RC] Auto db Backup

Post by Galixte de EzCom » Fri Dec 08, 2017 7:33 pm

eunaumtenhoid wrote:
Fri Dec 08, 2017 1:42 pm
language files changed?
ext_autodbbackup.php >> ext_enable_error.php?
Yes, on 5 july 2017 david had updated the language files: https://github.com/david63/david63-auto ... 68c3897cc1. But, what’s your question (what do you want to know) ?
Communau EzCom
📖 « Traductions d’extensions & styles pour phpBB 3.1.x & 3.2.x ».
📋 Lists of all extensions identified for phpBB 3.1.x & 3.2.x.
📋 Lists of all styles identified for phpBB 3.1.x & 3.2.x.

Image Tu as un forum et tu veux aussi un site web ? Regarde par ici.

User avatar
david63
Jr. Extension Validator
Posts: 14559
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Auto db Backup

Post by david63 » Thu Dec 14, 2017 9:42 pm

accs-p wrote:
Thu Dec 14, 2017 9:30 pm
The only cron setting I found was under ACP -> GENERAL -> SERVER CONFIGURATION -> Server settings. In this screen, the Run periodic tasks from system cron: parameter is set to No.
That has nothing to do with this extension and relates to using system cron - this extension uses phpBB cron.

The most likely reason that the backup is not running is the way that phpBB cron works. It will run the next time that the board is accessed after the time interval, but only if it is the next cron job to be ru. There are several core cron maintenance jobs that are being run all the time and it all depends where the backup is within that list of jobs. On a busy board it is not normally noticeable but if the board is quiet then it can take quite a while to run. On my local test board I sometimes have to keep accessing the board continuously for two or three minutes before I can force it to run.
accs-p wrote:
Thu Dec 14, 2017 9:30 pm
Also, I found something that appears to be a bug.
That sounds as if there is something wrong with your setup - cookies, .htaccess, caching as I have never seen, or heard, of it happening before.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
david63
Jr. Extension Validator
Posts: 14559
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Auto db Backup

Post by david63 » Fri Dec 15, 2017 7:07 am

I have never tried running it via cli but if all you are doing is invoking the cron task to run at a specified time then I suspect that you will still have the problem of other cron jobs being in the queue ahead of this one
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
david63
Jr. Extension Validator
Posts: 14559
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Auto db Backup

Post by david63 » Sat Dec 16, 2017 10:41 pm

accs-p wrote:
Sat Dec 16, 2017 10:30 pm
Perhaps the easiest way to handle this is to have a flag to not change the minute portion of the run time.
That is already programmed in the next version
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
draky
Registered User
Posts: 247
Joined: Tue Dec 10, 2002 2:04 pm
Location: France
Name: Gilles W.
Contact:

Re: [3.2][RC] Auto db Backup

Post by draky » Sun Dec 17, 2017 10:45 am

Nice tool :)

In OP, you tell about "sending files using event", is it doable in admin panel ?

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: david63, koraldon, v12mike and 22 guests