A curated list of BASH scripts primarily aimed towards Linux systems, still a work in progress!
- Clone the repository:
git clone https://github.com/hakrishi/bash-scripts.git
- Change directory to a script you would like to run:
cd docker
- Change the permissions of the script:
chmod +x backupDockerContainers.sh
- Run the script: `./backupDockerContainers.sh
Note that this process applies to all scripts within this repository
You may find it useful to run scripts automatically on Linux, this is where Cron Jobs comes into play. To setup CronJobs following the below steps:
- Run
crontab -e
- On the very last line add the following:
0 14 * * 0 /path/to/script.sh
- Save the file then exit
While the above example runs the script every Sunday at 2PM you can set your own Cron Job here
If you have any questions feel free to reach out to me on Signal or via email: [email protected].