[FREE] DB Dump utility

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.

2 Likes

Yeah, it is if you don’t start it as last resource. Forgot about this, so I updated script so it waits a bit for you

did you really upload the entire node_modules to github? :face_with_raised_eyebrow:

Yeah, I also upload entire modules when I work on react projects with large ui libraries (multiple, not only one).

You know you have package.json for a reason right? just npm install and you’re good to go

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

Great utility, thanks for sharing :clap:

1 Like

Updating to use discord webhooks for “notifications” every time a db is successfully created

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.

You can set up a config to backup external dbs too