skillz4real / sh-scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shell scripts

Collection of bash scripts used for housekeeping and other tasks

Mascot

Arch Shell Script Git Neovim License: GPL v3

πŸ’» Automation for power users


πŸ“œ Description

Automating tasks like backups, updates etc...


βš™οΈ Installation

First Clone the repository:

git clone https://github.com/skillz4real/sh-scripts
cd sh-scripts

Then add executable permissions:

chmod +x arch-housekeeping.sh
chmod +x debian-updates.sh
chmod +x rsync-backup.sh

Finally, Consider adding relevant commands to crontab. Each script logs to a "./log.txt" file but I also include logging in all of my crontab jobs

# crontab example for debian-bases systems
0 1 * * * echo "running debian update script at $(date)" && cd $HOME/sh-scripts/ && /bin/sh $HOME/sh-scripts/debian-updates.sh >> $HOME/crontab.log 2>&1
0 0 1 * * echo "running debian backups on $(date)" && cd $HOME/z/sh-scripts/ && ./rsync-backup.sh >> $HOME/crontab.log 2>&1 

# for arch based systems replace first job with this line
0 1 * * * echo "running arch update script at $(date)" && cd $HOME/sh-scripts/ && ./arch-housekeeping.sh >> $HOME/crontab.log 2>&1

🌟 Features

  • Support for debian and arch systems
  • Updates and backups

πŸ“š Educational Resources

I am not an expert, I am still learning, here are the resources I use and my profiles:


πŸ‘¨β€πŸ’» Youtube


πŸ“„ License

sh-scripts is released under the GNU LICENSE.


πŸ“ž Support

For support, feature requests, or bug reports, please file an issue in the GitHub issue tracker.


About


Languages

Language:Shell 100.0%