I'm very new to linux and am currently creating a very simple file backup script in bash and I am using Ubuntu.
I am calling backup.sh script from within the terminal using sudo bash backup.sh.
I have a configuration file separate from backup.sh (for ease of upgrade etc) , that contains variables e.g. email address to send logs to, location of log file, location of backup files etc. Both backup.sh and the config file will reside in the same folder.
How do I make the variables available to backup.sh – easiest way possible – as you guess by my question I'm a novice!