Muhammad Hendra

create backup cronjob in cpanel

first script : to make backup cronjob using mysqldump console command :   script to make backup mysqldump -h your_ip_address_or_domain -u database_username -p’yourpassword’ database_name  > /home/stiepanc/public_html/database_backup/db-backup-$(/bin/date +\%d\%m\%Y).sql cron job to run automatic query to remove 10 days old files : /home/stiepanc/public_html/database_backup/db_remove_older_file.php script to make automatic remove 10 days old file, make this with cron job <?php $folderName = ‘/home/stiepanc/public_html/database_backup’; if (file_exists($folderName)) {     foreach (new DirectoryIterator($folderName) as $fileInfo) {         if ($fileInfo->isDot()) {         echo ‘nothing to delete ‘;         continue;         } …

create backup cronjob in cpanel Read More »

OJS 3 theme structure

ojs 3 using parent-child templates mechanisms just like wordpress done in the way to manage the template. the reference to understand such thing is just like the explanation in ojs forum : NateWr Sep 29 1) Do I put all child theme files right under plugin/themes (without the default-child folder)? Yes, although you should rename …

OJS 3 theme structure Read More »

membuat database backup terjadwal di plesk parallel

pada opsi pertama perintah tersebut akan dijalankan setiap hari pada jam 23 menit 59 dengan format file db-backupharibulantahun.sql pada folder database_backup berikut perintahnya agar mudah di copas : /usr/bin/mysqldump -h 192.168.23.207 -u ojs -p’y1Nki@49′ ojsstiep_ojs > /var/www/vhosts/ojs.stiepancasetia.ac.id/httpdocs/database_backup/db-backup-$(/bin/date +\%d\%m\%Y).sql 2. pada perintah kedua yakni melakukan penghapusan terjadwal terhadap file backup yang menumpuk setiap hari minggu dengan script php sebagai berikut : <?php $files = glob(cacheme_directory().”*”); $now   = time(); foreach ($files as $file) …

membuat database backup terjadwal di plesk parallel Read More »