π» Automation for power users
Automating tasks like backups, updates etc...
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
- Support for debian and arch systems
- Updates and backups
I am not an expert, I am still learning, here are the resources I use and my profiles:
sh-scripts is released under the GNU LICENSE.
For support, feature requests, or bug reports, please file an issue in the GitHub issue tracker.