Announcement

Collapse
No announcement yet.

AutoBackup With Softaculous & CPanel Advice

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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=--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

  • #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


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

      Comment

      Working...
      X