The article emphasizes the critical role of Bash in DevOps, highlighting its necessity for various daily tasks such as user management and server setup. While automation tools like Ansible are valuable, they cannot match the straightforwardness and flexibility of Bash for certain tasks. The author shares a basic Bash script for backing up a home directory, illustrating its simplicity and practicality. This discussion aims to underscore the importance of mastering Bash in a DevOps context, despite the allure of higher-level automation tools.
Of course, you can automate many tasks with Ansible. But to what extent can it replace Bash's flexibility? For instance, when someone asks to be added to a group, will you write a role or playbook for that? No.
We start with variables (not, a surprise, I know). Timestamp based on date, SOURCE_DIR (what we copy - here we can use env variable $HOME) and DEST_DIR where are copying to.
Collection
[
|
...
]