[MOD] Auto Backup

ตอบกระทู้

รูปแสดงอารมณ์
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
รูปแสดงอารมณ์อื่นๆ

BBCode เปิด
[img] เปิด
[url] เปิด
[Smile icon] เปิด

กระทู้แนะนำ
   

มุมมองที่ขยายได้ กระทู้แนะนำ: [MOD] Auto Backup

[MOD] Auto Backup

โดย buay » 26/07/2014 6:04 pm

26-7-2557 17-58-11.png
26-7-2557 17-58-11.png (37.09 KiB) Viewed 4135 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

ข้างบน