i was looking for some Backups for Database but all Apps are outdated.
I made today a simple Bash script to upload on the server and run it with a CronJob
maybe someone can use it, have some better ideas for and can Fork it or we can work together and make it better
A suggestion: If you revise the script, could you add “localhost” as the default HOSTNAME? It makes more sense to have, especially for those of us who aren’t MySQL experts
Also, it seems you’ve exposed a password, but I assume you have already updated that…
I have made the necessary adjustments. I would be grateful if you could review the script (the changes) and let me know if you notice anything else or have any other suggestions.
Very nice it is difficult to make universal backup script.
I personally backup system wide so nextcloud is included in my system backup.
never the less there are many options to think off.
If there is access to occ then all your variables can be fetched from the config. It is not a good idea to keep blanc passwords inside scripts.