DEV Community

New Bash Snippet Additions Series' Articles

Back to Anguishe's Series
I Lost a Client's Database on a $5 VPS. Here's the 12-Line Script That Would Have Saved It.
Cover image for I Lost a Client's Database on a $5 VPS. Here's the 12-Line Script That Would Have Saved It.

I Lost a Client's Database on a $5 VPS. Here's the 12-Line Script That Would Have Saved It.

5
Comments 2
3 min read
My Nginx Died at 2 AM and Nobody Noticed for 6 Hours. Now I Have a Watchdog Script.

My Nginx Died at 2 AM and Nobody Noticed for 6 Hours. Now I Have a Watchdog Script.

Comments
4 min read
Your Server Is at 97% CPU Right Now. Would You Know?
Cover image for Your Server Is at 97% CPU Right Now. Would You Know?

Your Server Is at 97% CPU Right Now. Would You Know?

Comments
4 min read
The Simplest Automated Backup That Actually Works (6 Lines of Bash)
Cover image for The Simplest Automated Backup That Actually Works (6 Lines of Bash)

The Simplest Automated Backup That Actually Works (6 Lines of Bash)

Comments
6 min read
I Alias This One-Liner to 'mktoday' and Use It Every Single Week
Cover image for I Alias This One-Liner to 'mktoday' and Use It Every Single Week

I Alias This One-Liner to 'mktoday' and Use It Every Single Week

Comments
3 min read
I Aliased 'syscheck' to 7 Lines of Bash and Now I Run It on Every Server I SSH Into
Cover image for I Aliased 'syscheck' to 7 Lines of Bash and Now I Run It on Every Server I SSH Into

I Aliased 'syscheck' to 7 Lines of Bash and Now I Run It on Every Server I SSH Into

Comments
3 min read
set -euo pipefail — the Line That Would Have Saved Me from Deleting the Wrong Directory
Cover image for set -euo pipefail — the Line That Would Have Saved Me from Deleting the Wrong Directory

set -euo pipefail — the Line That Would Have Saved Me from Deleting the Wrong Directory

Comments
3 min read
certbot had been auto-renewing my certs for two years. Until it wasn't.
Cover image for certbot had been auto-renewing my certs for two years. Until it wasn't.

certbot had been auto-renewing my certs for two years. Until it wasn't.

Comments
5 min read
I was handed a server with no docs and no idea what it was listening on. One command fixed that.
Cover image for I was handed a server with no docs and no idea what it was listening on. One command fixed that.

I was handed a server with no docs and no idea what it was listening on. One command fixed that.

Comments
6 min read