Join the community today
Become a Member

Thanks for making this idiot proof

Discussion in 'Install & Upgrades or Pre-Install Questions' started by briansol, May 11, 2024.

  1. briansol

    briansol New Member

    15
    4
    3
    Dec 19, 2015
    CT
    Ratings:
    +11
    Local Time:
    11:56 PM
    1.27.4
    10.6.21
    I went to add a job to the crontab and over-wrote instead of appended my entry.

    I noticed there were crons there before from centmin, so i paniced a little.


    quickly went in to centmin to see if there was an option to rebuild and yet, there it was, checking the crons exist and appending them to my 'new' file i just made before loading the options interface.
    existed out, did a crontab -l to see my and centmin's crons there now.

    Hoping there weren't others from alma - i'll never know i guess. Hope i didn't blow up the server.

    Note to self-- back up the cron tab too!

    THANK YOU, because i came here to ask for the cron scripts to add, but didn't have to.
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,374
    12,255
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,835
    Local Time:
    1:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Somewhat limited but through various Centmin Mod setup stages there would be cronjob backups that are saved to /etc/centminmod/cronjobs as well

    Also if you ran centmin.sh menu option 22 for Wordpress installs, you should have before and after Wordpress install specific cronjob backups at /home/nginx/domains/yourdomain.com/cronjobs

    FYI, if you list and sort them by date ascending you can get a sense of the order they were created

    Code (Text):
    ls -lahrt /etc/centminmod/cronjobs
    ls -lahrt /home/nginx/domains/yourdomain.com/cronjobs