How can I create nonexistent subdirectories recursively using Bash?
I am creating a quick backup script that will dump some databases into a nice/neat directory structure and I realized that I need to test to make sure that the directories exist before I create them. The code I have works, but is there a better way to do it? [ -d “$BACKUP_DIR” ] || … Read more