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.
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.
4- I created a separate CronJob to delete files older than 10 days.
That is all. I am not a developer. So I can only do this much
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 {} \;
Comment