[MOD] Auto Backup

แนะนำ Mod ต่างๆ ของ PHPBB3 แนะนำความสามารถ ของ mod การติดตั้ง การเข้ากันได้กับเวอร์ชั่น

Moderator: mindphp

buay
PHP Super Member
PHP Super Member
โพสต์: 250
ลงทะเบียนเมื่อ: 02/06/2014 9:55 am

[MOD] Auto Backup

โพสต์ที่ยังไม่ได้อ่าน โดย buay »

26-7-2557 17-58-11.png
26-7-2557 17-58-11.png (37.09 KiB) Viewed 4102 times
รายละเอียด : MOD นี้จะทำการสำรองข้อมูลอัตโนมัติ สามารถใช้ได้กับ phpBB 3.0.11 และ 3.0.12
พัฒนาโดย : Pico88
Version : 1.0.3
ดาวน์โหลดได้ที่ : https://www.mindphp.com/download/files/123-1 ... 3-zip.html

ไฟล์ที่ใช้ในการติดตั้ง
>>cron.php,
>>includes/functions.php

วิธีติดตั้ง
เปิดไฟล์ cron.php

ค้นหา

โค้ด: เลือกทั้งหมด

}

// Unloading cache and closing db after having done the dirty work.
unlock_cron();
garbage_collection();
เติมก่อน

โค้ด: เลือกทั้งหมด

    case 'auto_backup':
        
        if ((time() - $config['auto_backup_gc'] * 86400) <= $config['auto_backup_last_gc'])
        {
            break;
        }

        include($phpbb_root_path . 'includes/auto_backup.' . $phpEx);

        auto_backup();

    break;
เปิดไฟล์ includes/functions.php

ค้นหา

โค้ด: เลือกทั้งหมด

            $cron_type = 'tidy_sessions';
        }
เติมหลัง

โค้ด: เลือกทั้งหมด

        else if (isset($config['auto_backup_enable']) && $config['auto_backup_enable'] && (($time_now - $config['auto_backup_gc'] * 86400) > $config['auto_backup_last_gc']))
        {
            $cron_type = 'auto_backup';
        }
*จากนั้นให้ทำการ คัดลอกไฟล์ทั้งหมดที่มี ในโฟลเดอร์ root ไปวางทับ
และทำการรันในหน้า install_auto_backup.php เพื่อทำการ install

ผู้ใช้งานขณะนี้

สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 29