AutoBackup With Softaculous & CPanel Advice

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alpkrgl
    Junior Member
    • Oct 2023
    • 21

    AutoBackup With Softaculous & CPanel Advice

    Hi,

    I wanted to make an automatic backup with Cpanel and I achieved this by following the applications in the screenshots below. I hope it is useful to everyone.​

    1 - Set up automatic backup in the Softaculous app.


    2 - Set the backup frequency by entering CronJob in the CPanel application.
    PHP Code:
    /usr/local/cpanel/3rdparty/bin/php -d disable_functions="" "/usr/local/cpanel/whostmgr/docroot/cgi/softaculous"/cli.php --backup --auto=1 --insid=501_66465 
    

    3 - Since there is a backup limit in the application, I wrote the command to move the backup files to the CRMBACKUP (i created for olds) folder I created using CronJob, according to the backup frequency I make.
    PHP Code:
    mv /home/alaakade/softaculous_backups/*tar.gz /home/alaakade/CRMBACKUP 
    

    4- I created a separate CronJob to delete files older than 10 days.
    PHP Code:
    find /home/alaakade/CRMBACKUP -mtime +10 -exec rm {} \; 
    
    That is all. I am not a developer. So I can only do this much
  • esforim
    Active Community Member
    • Jan 2020
    • 2204

    #2
    Well done, but have you tested it? Make sure you try to restore it and it working!

    Else you might have backup of just corruption!

    Comment

    • alpkrgl
      Junior Member
      • Oct 2023
      • 21

      #3
      Thanks. I tested. When want to recover, Just move file to old location and use the softaculous app.

      Comment

      Working...