Backup Your /etc Directory With Daily Cron Task | Here is a simple and easy way to make daily backups of your /etc/ directory!
PAM ERROR Authentication token is no longer valid | If PAM is complaining that an Authentication token is no longer valid, this means the user’s password has expired. Here are the details!
How To Backup and Restore MongoDB | MongoDB has great management tools for an admin. Here are some tips for backing up mongo!
Backup your /etc/ directory to a tarball with the date | Backup your /etc! Here is a random useful command I incorporate into various backup strategies.
Read Root Mail Locally With alpine | Here is a way to receive and read root mail locally with alpine on Debian Linux. Check it out!
How to Run cron job as Regular non-root User | Instead of putting all of your server’s cron jobs as root, consider having them in a regular user’s crontab. This is better for security reasons as well as good general practice. I’ll show you how!
Cron Only Email Errors | To have your trusty cron job only email errors, simply add this designation to the end of your cron entry: >/dev/null Example: */30 * * * * /usr/local/bin/myscript.pl >/dev/null Optional more geeky details: There are two different kinds of output from any given command. “>” is the same as issuing “1>” which is the non-error