QNAP

MARS (Multi-Application Recovery Service) 1.2

WordPress services

A WordPress service allows MARS to back up or restore an entire WordPress application (including all themes and plugins) or only the database used by a WordPress application. In order to back up or restore a WordPress application you must first install the QNAP NAS Backup plugin for WordPress and obtain the WordPress access key. After that you will need to create a WordPress service within MARS.

Installing QNAP NAS backup in WordPress

The QNAP NAS Backup plugin for WordPress allows you to run WordPress backup and restore jobs in MARS, and also allows you to view MARS job records in WordPress.

  1. Log in to WordPress with an administrator account.
  2. Go to Plugins > Add New.
  3. Enter QNAP NAS Backup in the search bar.

    The QNAP NAS Backup should appear in the search results.

  4. Click Install Now.
  5. Click Activate.

The WordPress plugin QNAP NAS Backup is installed.

To obtain the access key for creating a WordPress service, see Obtaining the WordPress access key.

Obtaining the WordPress access key

MARS requires an access key from WordPress to create a WordPress service. The access key is generated by the QNAP NAS Backup plugin. To install the plugin, see Installing QNAP NAS backup in WordPress.

  1. Log in to WordPress with an administrator account.
  2. Go to QNAP Backup.
  3. Next to Access key, click Copy.

The access key is copied to your clipboard.

To continue creating a WordPress service, see Creating a WordPress service.

Creating a WordPress service

The WordPress plugin QNAP NAS Backup must be installed on your WordPress application. For details, see Installing QNAP NAS backup in WordPress. After installing QNAP NAS Backup, you need to obtain an access key. For details, see Obtaining the WordPress access key.

  1. Open MARS.
  2. Go to Applications > WordPress.
  3. Click Add Service.

    The Add Service window appears.

  4. Specify the following information:
  5. Click Verify.

    MARS verifies the target WordPress application is accessible using the QNAP NAS Backup access key.

  6. Click Apply.

    The WordPress service is created and appears in the service list.

Increasing the file upload size limit

In order to successfully back up or restore large WordPress applications that contain many plugins, themes, or databases, you may need to increase the file upload size limit.

  1. Open a Secure Shell (SSH) connection to your QNAP NAS.
  2. Enter the following commands in the terminal depending on the type of WordPress application.
    Note:

    To allow WordPress to process larger file transfers, the following commands also increase the PHP RAM usage limit and the PHP script execution time limit.

    Application Type

    Commands

    A native WordPress application

    cat <<EOF >> /proc/`system-docker inspect -f '{{.State.Pid}}' wordpress_wordpress_1`/root/var/www/html/WordPress/.htaccess 
    
    php_value upload_max_filesize 1280M 
    
    php_value post_max_size 1280M 
    
    php_value memory_limit 2560M 
    
    php_value max_execution_time 3000 
    
    php_value max_input_time 3000 
    
    EOF 

    A WordPress application container inside Container Station

    Note:

    Replace {@container_name} with the WordPress container name.

    export CONTAINER_NAME={@container_name} 
    cat <<EOF >> /proc/`docker inspect -f '{{.State.Pid}}' ${CONTAINER_NAME}_wordpress_1`/root/var/www/html/.htaccess 
    
    php_value upload_max_filesize 1280M 
    
    php_value post_max_size 1280M 
    
    php_value memory_limit 2560M 
    
    php_value max_execution_time 3000 
    
    php_value max_input_time 3000 
    
    EOF 

The file upload size limit of the WordPress application is increased.