vinod chandravinod-sh.hashnode.dev·Jul 12, 2024Day 11 : Improving Backup Rotation Script with Trap FunctionIn my DevOps journey, scripting efficient and reliable backup processes is key. Earlier, I practiced a backup rotation script to manage backups of a directory with a 5-day rotation. Today, I learned trap function and implemented to the backup script ...Discuss·28 readsLinux
Elucian MoiseforProgramming Languagessagecode.hashnode.dev·Aug 24, 2023Bash Signal HandlingBash scripts can receive signals from the operating system or other processes. These signals can interrupt the script and cause it to exit unexpectedly. The trap command allows you to catch signals and handle them gracefully in your Bash scripts. Thi...DiscussBash FundamentalsBash