CHAPTER 24Writing Simple Script Utilities
Shell scripts are all about automating tasks, making your life easier, and letting the system handle the boring jobs.
We've included several sample useful scripts throughout the book, and this chapter adds some additional ones. Learning how to write Bash script utilities will pay you back many times over. And the beauty of shell scripts is that they are easily customized for your particular needs — especially now that you are almost a Bash script-writing guru!
Performing Backups
Whether you're responsible for a Linux system in a large corporate environment or a small mom-and-pop shop, or you're just using it at home, the loss of data can be catastrophic. To help prevent bad things from happening, it's always a good idea to perform regular backups (also called archives).
However, what's a good idea and what's practical are often two separate things. Trying to arrange a backup schedule to store important project files can be a challenge. This is another place where shell scripts often come to the rescue.
If you desire ...
Get Linux Command Line and Shell Scripting Bible, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.