Do you have a long running bash script on your server’s cron list? And you really wanna get notified about the total execution time for your cron? Yeah, here we go! We can not find out the total execution time from…
scripts
Dump Mongo DB and move it to an S3 bucket.
Requirement: Need to create a script to create Mongo DB dump and move the dump to an AWS s3 bucket. Prerequisites: SSH access to Mongo DB server, IAM user with AWS s3 full [or write] access, aws-cli on server, knowledge…
Cronjob to delete all emails older than one month from server.
Is there any way to remove old emails automatically from server? Before starting with the cronjob script, we must know the locations where the emails stored in the server. Then we can go to the steps to remove them đ Exactly…
Dump Mongo DB collections and move it to an S3 bucket.
Requirement: Need to write a script to create Mongo DB collections dump and move the dump to an AWS s3 bucket. Prerequisites: SSH access to Mongo DB server, IAM user with AWS s3 full [or write] access, aws-cli on server,…
Managing MySQL database backup
How to create/restore MySQL databases’ dump/backup of all the databases? Yes!! this is an important section in  MySQL administration, and every Linux SysAdmins should know about it. Because, creating backups are such an important task for a SysAdmin. In MySQL, the…
How to change the database user password – cPanel?
Changing the database user password using bash script? Change the database user password, need simple solution!! The MySQL community has depreciated âold_passwordsâ option since MySQL 5.6 version. So we wonât be able to recollect the password from an old password…
Enabling email authentication (SPF and DKIM) for all existing accounts – cPanel/WHM
Is it possible? A back-end option to enable SPF and DKIM for already created cPanel accounts? In cPanel, backend scripts are available to enable SPF and DKIM for all accounts that are already created without enabling email authentications, SPF and…