장바구니

등록된 상품이 없습니다
합계: 0

최근 본 상품

등록된 상품이 없습니다
워드프레스 전문가들이 선택한 필수 플러그인
    유용한팁
    Home / 유용한팁
    글보기
    워드프레스 백업 플러그인을 이용하여 망보드 데이터 백업하는 방법 (Updraftplus, All-in-One WP Migration)
    조회수52
    2025-01-24 15:25


    워드프레스 백업 플러그인들은 기본적으로 "wp_" 접두사로 시작하는 디비 테이블에 대해서만 백업을 진행하기 때문에

    망보드 게시판 테이블을 비롯하여 자체적인 접두사를 사용하고 있는 테이블은 백업 파일에 포함이 되지 않는데

    아래의 내용을 참고하여 백업 플러그인의 코드를 일부 수정해 주시면 망보드 게시판 테이블도 같이 백업해서 사용이 가능합니다.

     
     
     
    1. Updraftplus 백업 플러그인을 이용하여 망보드 게시판 데이터 백업하기

    Updraftplus 플러그인 파일에서 아래 내용을 참고하여 3군데에 코드만 추가해 주시면 
    Updraftplus 플러그인을 이용하여 망보드 게시판 데이터를 백업해서 사용이 가능합니다.

     Updraftplus 플러그인
    - 수정파일: /wp-content/plugins/updraftplus/backup.php
    - 수정코드
      1) 1737라인에  || (!$this->duplicate_tables_exist && 0 === stripos($table, "mb_")) 코드 추가
      2) 1740라인에 /* 코드 추가
      3) 1754라인에 */ 코드 추가

    수정전

    img1.png


    수정후

    - 빨간색으로 네모친 부분에 코드 추가 (3군데)

    img3.png



    수정된 코드


    • // === is needed with strpos/stripos, otherwise 'false' matches (i.e. prefix does not match)
    • if (empty($this->table_prefix) || (!$this->duplicate_tables_exist && 0 === stripos($table"mb_")) || (!$this->duplicate_tables_exist && 0 === stripos($table$this->table_prefix)) || ($this->duplicate_tables_exist && 0 === strpos($table$this->table_prefix))) {
    •  
    •     // Skip table due to filter?
    •     /*
    •     if (!apply_filters('updraftplus_backup_table', true, $table, $this->table_prefix, $whichdb, $dbinfo)) {
    •         $updraftplus->log("Skipping table (filtered): $table");
    •         if (empty($this->skipped_tables)) $this->skipped_tables = array();
    •  
    •         // whichdb could be an int in which case to get the name of the database and the array key use the name from dbinfo
    •         $key = ('wp' === $whichdb) ? 'wp' : $dbinfo['name'];
    •  
    •         if (empty($this->skipped_tables[$key])) $this->skipped_tables[$key] = array();
    •         $this->skipped_tables[$key][] = $table;
    •  
    •         $total_tables--;
    •         continue;
    •     }
    •     */
    •  
    •     add_filter('updraftplus_backup_table_sql_where'array($this'backup_exclude_jobdata')310);
    •  



    Updraftplus 플러그인을 이용한 데이터 백업 방법

    백업 파일이 저장되는 경로: /wp-content/updraft/ 


    1) 워드프레스 관리자 > UpdraftPlus 페이지에서 "지금 백업" 버튼 클릭

    backup1.png

     

    2) 팝업창에서 "백업에 데이터베이스 포함"만 선택 후 "지금 백업" 버튼 클릭

    backup2.png

     






    2. All-in-One WP Migration 백업 플러그인을 이용하여 망보드 게시판 데이터 백업하기 

    All-in-One WP Migration 플러그인 파일에서 아래 내용을 참고하여 1군데에 코드만 추가해 주시면 
    All-in-One WP Migration 플러그인을 이용하여 망보드 게시판 데이터를 백업해서 사용이 가능합니다.

     All-in-One WP Migration 
    - 수정파일: /wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-enumerate-tables.php
    - 수정코드
      1) 56라인에  , 'mb_' 코드 추가


    수정전

    img5.png


    수정후

    - 빨간색으로 네모친 부분에 코드 추가 (1군데)

    img6.png



    수정된 코드

     

    • // Include table prefixes (Webba Booking)
    • foreach ( array( 'wbk_services''wbk_days_on_off''wbk_locked_time_slots''wbk_appointments''wbk_cancelled_appointments''wbk_email_templates''wbk_service_categories''wbk_gg_calendars''wbk_coupons''mb_' ) as $table_name ) {
    •     $db_client->add_table_prefix_filter( $table_name );
    • }




    All-in-One WP Migration 플러그인을 이용한 데이터 백업 방법

    백업 파일이 저장되는 경로: /wp-content/ai1wm-backups/ 


    1) 워드프레스 관리자 > All-in-One WP Migration > 내보내기  페이지 접속

    2) 고급설정 항목에서 불필요한 내용을 체크한 후 내보내기 사이트 대상에서 "파일" 버튼 클릭


    backup3.png

     

     



    저희가 몇가지 워드프레스 백업 플러그인을 분석해 본 결과 Updraftplus 플러그인이 가장 많은 디비 용량을 백업할 수 있었고,


    가장 안정적으로 동작하는 것으로 확인이 되었습니다.




    카테고리일반