A quick util I created to dump an SQL files using mysqldump.js from server to local storage for backup purposes. There are plenty of ways to store db, this is one of them.
Takes mysql settings convar, so there is no need for you to even touch the config. By default it dumps on server start and each 12 hours. Configurable.
Feel free to do a PR for updates / changes / new features.
It’s not like i don’t know how installing modules work, but I doubt majority of people know how to install it. However, default fivem yarn could probably do it anyway
I have people reporting open source resources not working while they can’t configure configs. Expecting people to know how to use package managers is something I don’t count on, hence why I uploaded node modules as well (it’s a small project anyway), but for anyone reading afterwards, he’s right about not uploading node_modules, just easier for me to avoid stupid comments about it not working
Can this script only backup local database? Because the script always trys to backup from the local adress. I already changes the server in config.json to my other server with the database.