You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This needs to be replaced in the app\Controllers\Config.php backup_db() function. Before this can be done we need to decide on how we want to do it. @opensourcepos/org
I even don't know if this feature works properly if you have a larger db, eg. Will it hit the PHP memory limit because it tries to load the whole dump in memory before sending it to the user? Personally I have never used it and always use different means to manage database backups and dumps.
@objecttothis I think we should just drop this as a whole. It's not something you should do from within the app. I consider it a security risk.
Dumping a db can be done from a tool that is designed for it.
I agree. If no compelling reason to keep it, then I will drop it. The only thing I can think of is a pipe dream that I have for an unhappy install/upgrade tool. However, I would implement the db backup by calling mysqldump rather than PHP driven.
@jekkos@objecttothis I actually use this functionality but really only because it was there. I have hit the PHP memory limit and will probably keep hitting it as my database grows. The nice thing about the database backup is I can access it remotely and do a backup to a different machine which saves me having to do all that manually. I'm sure there's a better way but I just haven't taken the time to figure it out.
@jekkos@objecttothis I actually use this functionality but really only because it was there. I have hit the PHP memory limit and will probably keep hitting it as my database grows. The nice thing about the database backup is I can access it remotely and do a backup to a different machine which saves me having to do all that manually. I'm sure there's a better way but I just haven't taken the time to figure it out.
@chunter2 Thanks for letting me know. It will take some initial setup, but you could setup OpenVPN to remotely VPN into your network and then install something like phpmyadmin which gives you a gui interface. Alternately SSH and use mysqldump in the CLI then FTP the backup. As I mentioned before, the current implementation doesn't work, so it would need to be redone to use something like mysqldump anyway.
@objecttothis I actually use ssh tunnels and phpmyadmin already. Sounds like I just need to use the export function to duplicate the backup button. Thanks for the info.
Activity
jekkos commentedon Apr 5, 2022
@objecttothis I think we should just drop this as a whole. It's not something you should do from within the app. I consider it a security risk.
Dumping a db can be done from a tool that is designed for it.
jekkos commentedon Apr 5, 2022
I even don't know if this feature works properly if you have a larger db, eg. Will it hit the PHP memory limit because it tries to load the whole dump in memory before sending it to the user? Personally I have never used it and always use different means to manage database backups and dumps.
jekkos commentedon Apr 5, 2022
If any objections please shoot @opensourcepos/org
objecttothis commentedon Apr 5, 2022
I agree. If no compelling reason to keep it, then I will drop it. The only thing I can think of is a pipe dream that I have for an unhappy install/upgrade tool. However, I would implement the db backup by calling mysqldump rather than PHP driven.
chunter2 commentedon Apr 6, 2022
@jekkos @objecttothis I actually use this functionality but really only because it was there. I have hit the PHP memory limit and will probably keep hitting it as my database grows. The nice thing about the database backup is I can access it remotely and do a backup to a different machine which saves me having to do all that manually. I'm sure there's a better way but I just haven't taken the time to figure it out.
objecttothis commentedon Apr 7, 2022
@chunter2 Thanks for letting me know. It will take some initial setup, but you could setup OpenVPN to remotely VPN into your network and then install something like phpmyadmin which gives you a gui interface. Alternately SSH and use mysqldump in the CLI then FTP the backup. As I mentioned before, the current implementation doesn't work, so it would need to be redone to use something like mysqldump anyway.
objecttothis commentedon Apr 7, 2022
For reference, here is the current implementationn
chunter2 commentedon Apr 7, 2022
@objecttothis I actually use ssh tunnels and phpmyadmin already. Sounds like I just need to use the export function to duplicate the backup button. Thanks for the info.
jekkos commentedon Apr 7, 2022
I would say phpMyAdmin is the way to go here indeed.