All Questions
13
questions
6
votes
1answer
93 views
All-core MediaWiki website upgrade script
I wrote the following Bash script to upgrade All-core MediaWiki websites (no added extensions/skins or images - besides logo image).
I already tested the essence of this script and it worked for me; ...
2
votes
1answer
115 views
Create Apache2 virtualhost, Mysql db & user. CLI tool and GUI on top of it
Review for optimization, code standards, missed validation.
What's in this version:
Rewritten, instead of large complex script - few tools with each own
task.
Solid CLI tool and GUI script on top of ...
3
votes
1answer
134 views
Bash script to backup a LAMP server
I wrote a bash script for backing up my LAMP server. To be honest that's my first experience in bash so I want to ask you for help in its improvement.
...
4
votes
1answer
590 views
2
votes
2answers
101 views
Nginx-WordPress installer for Debian
I have written the following Bash script which includes an Nginx WordPress bootstrapper: A program establish WordPress apps fast on a Debian-Nginx environment.
It utilizes CertBot for HTTPS, SSHguard ...
0
votes
1answer
41 views
MySQL CLI: Create a MySQL user & DB
Please review my Bash code to create an authenticated, all privileged MySQL user plus a DB with the same name, through the MySQL CLI:
...
2
votes
1answer
203 views
Bash script to validate a MySQL database
I am fairly new to bash script programming so I would love some feedback.
I am trying to write a series of migration scripts for our DBs (please don't direct me to other tools; I spent a lot of time ...
3
votes
1answer
691 views
Backup MySQL database for Django projects
I have a usual Django application with a single MySQL database. The purpose of this shell script is to backup a MySQL database every midnight by crontab and check that everything goes right.
The ...
1
vote
2answers
203 views
Iterating over a range of dates in a shell script
I have been working on a script that can be used to automatically pull the batch ids that were processed 4 days ago and which need to be processed tomorrow on the server. The batch IDs from 3 days ago ...
3
votes
1answer
44 views
Moving WordPress database and files to new host
I've written a script in an attempt to try to automate moving hosts from old hosts to our new docker containers.
All feedback and input appreciated!
...
5
votes
2answers
611 views
Bash “Rotating” MySQL backup
I'm quite a novice in shell scripting so far, but i'm learning and getting quite comfortable in writing shell scripts, but i have a lot to learn.
The snippet at the bottom of the page creates backups ...
10
votes
1answer
98 views
Automating a WordPress install
I do not have a whole lot to do over winter break, so I wrote this little script to automate a Wordpress install (currently can only install once instance) on a fresh Debian server (tested, working ...
2
votes
1answer
86 views
Bash-based MySQL inventory scanner
I am trying to create a bash-based inventory scanner, and was wondering if there is anything 'glaringly' incorrect about my syntax or usage. I was hoping I could get some feedback on:
bash ...