[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)
User avatar
tlem
Registered User
Posts: 99
Joined: Sun Jan 24, 2016 4:47 pm
Location: France
Name: Thierry
Contact:

Re: [3.2][RC] Auto db Backup

Post by tlem » Tue Sep 24, 2019 6:17 pm

Hi.
Here it is the french translation for the RC6.
Rename it without the .txt extention (don't know why zip files are not authorized).
Attachments
autodbbackup-3.2-RC6-Lang_Fr.zip.txt
(5.04 KiB) Downloaded 2 times

lochness
Registered User
Posts: 56
Joined: Tue Aug 07, 2007 12:04 pm

Re: [3.2][RC] Auto db Backup

Post by lochness » Sat Oct 12, 2019 9:20 pm

One question, I know barely enough php to edit pretty basic stuff, so before modifying and breaking the extension (got me quite a time to notice I had to delete part of the default folder name already...), I'd rather ask here.

If I want to store the backup files in a different folder, the line I have to change is just this one on auto_db:backup.php file, or are there other files I have to modify?

Code: Select all

$location		= $this->phpbb_root_path . '/store/';
I need to store the db backups on a mounted drive, so the path will be not relative to phpbb installation but to the server. Like this, I'm assuming

Code: Select all

$location		= $this-> 'home/mounted/store/';
Am I right?

The manual gzips I make are usually 4 Gb and have to be run from the terminal and not the ACP.

User avatar
david63
Registered User
Posts: 16535
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 » Sun Oct 13, 2019 7:56 am

I have never tried storing the backups anywhere else but in theory changing the $location variable should work just as long as it is absolute and the folder has the correct permissions.

Just one small point - if you are entering an absolute path you do not need the $this->
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

lochness
Registered User
Posts: 56
Joined: Tue Aug 07, 2007 12:04 pm

Re: [3.2][RC] Auto db Backup

Post by lochness » Sun Oct 13, 2019 10:24 am

Thanks for the tip, David63 :)

Will try the extension after the schedule server maintenance in 10 days and see how it works.

Gumboots
Registered User
Posts: 44
Joined: Fri Oct 11, 2019 1:59 am

Re: [3.2][RC] Auto db Backup

Post by Gumboots » Tue Oct 15, 2019 12:47 am

I'm going to have a play with this. I also don't want to use the default /store folder (I prefer to have db backups not web-accessible) so lochness's question is quite handy for me too. I'll try the relevant absolute path and see how it goes.

One question: the installation instructions at your GitHub repo say:
Download the latest release and unzip it.
Unzip the downloaded release and copy it to the ext directory of your phpBB board.
Which would result in /ext/autodbbackup-3.2

On the other hand, the installation instructions in the OP of this thread say:
Download the latest release and unzip it.
Upload the unzipped files to root/ext/david63/autodbbackup
Which would result in /ext/david63/autodbbackup/autodbbackup-3.2

Just to save head scratching, can you clarify which is the correct result to aim for?

User avatar
dingus33
Registered User
Posts: 112
Joined: Fri Sep 29, 2017 11:11 am

Re: [3.2][RC] Auto db Backup

Post by dingus33 » Tue Oct 15, 2019 1:23 am

nice looking extension.

some info i think would be helpful to include in the OP:
  • which db types are supported?
  • what is the underlying backup mechanism? does it just hook the built-in phpBB backup/restore functionality?
  • can backups be restored without using phpBB at all?
    • if not, is there a suggested procedure for restoring in an environment without a functional phpBB installation? would it be to just wipe your db, use the installer to create a fresh phpBB db, enable your extension, and then restore?

User avatar
david63
Registered User
Posts: 16535
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 » Tue Oct 15, 2019 6:02 am

Gumboots wrote:
Tue Oct 15, 2019 12:47 am
Just to save head scratching, can you clarify which is the correct result to aim for?
/ext/david63/autodbbackup/
dingus33 wrote:
Tue Oct 15, 2019 1:23 am
which db types are supported?
All phpBB suported db types
dingus33 wrote:
Tue Oct 15, 2019 1:23 am
does it just hook the built-in phpBB backup functionality?
Yes
dingus33 wrote:
Tue Oct 15, 2019 1:23 am
can backups be restored without using phpBB at all?
Yes
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

Gumboots
Registered User
Posts: 44
Joined: Fri Oct 11, 2019 1:59 am

Re: [3.2][RC] Auto db Backup

Post by Gumboots » Tue Oct 15, 2019 6:26 am

Thanks. I thought it might be, but wanted to be sure.

Post Reply

Return to “Extensions in Development”