Vinchin Knowledge Base
question Question

How to Protect Your NAS Shared Files with File Backup Feature

Last Modified: 2022-02-15 11:59:36 | Product: Vinchin Backup & Recovery | Version: V6.5

Questions Type: How-to

KB Number: 200294

Protect Your NAS Shared Files with File Backup Feature

question Answer

To protect your NAS shared files, you could use the file backup feature of Vinchin Backup & Recovery. Just below components need to be prepared:

l  NAS shared files (NFS / CIFS path)

l  A Linux machine with File backup plug-in installed

Here let’s take NFS path as an example.


Configure your NAS to be accessed as a NFS File Share

Setup NFS host access

Set the NFS access right of the network share: add Host / IP / Network (e.g. 10.10.0.10:/backups) and set their correct permissions (user with r&w).

Automatically Mounting NFS File Systems on Linux machine

If you don’t want to install a new Linux machine for mounting a NFS path, then you could use Vinchin server to mount the NFS path directly.

Step 1: Set up a mount point on Linux for the remote NFS share:

sudo mkdir /mnt/backups

Step 2: Run the mount command:

sudo mount -t nfs [ TRUENAS IP address]:[exported directory] /[the local mount point]

e.g.

sudo mount -t nfs 10.10.0.10:/backups /mnt/backups

Step 3: Edit the /etc/fstab file:

sudo vi /etc/fstab

Add the following line to the file:

# <file system>     <dir>       <type>   <options>   <dump>   <pass>

10.10.0.10:/backups /mnt/backups  nfs      defaults    0       0

 

Install File Backup Agent for Linux

Let’s install File Backup Agent on Vinchin server Linux as an example.

1.         Go to login screen and click on Download Backup Plug-in to go to the file backup plugin download page.

2.         In the Type dropdown list, please select File Backup Plugin. In the Filesystem dropdown list, please select the CentOS7 X64 then click on Download button to download the file backup plugin.

f33610a78ea29c91ee25932afa6b8cb.png

The downloaded file backup plugin should be a .tar.gz package.

3.         Upload the downloaded file from Windows desktop to the Linux system, you can use WinSCP or PSCP, or any other methods that you are familiar with.

4.         After uploading, please enter the Linux system command line interface and use the below command to decompress the package.

tar -zxvf vinchin-file-backup-agent-xxx.tar.gz

Where ‘xxx’ should be the actual file name of the file backup plugin package.

5.         Enter the file backup plugin package folder.

cd vinchin-file-backup-agent-xxx

To install the backup plugin, run below command.

./file_backup_agent_install

6.         Use below command to uninstall (once uninstalled, file backup and restore will no longer work on this Linux host).

./file_backup_agent_uninstall

7.         After installing the file backup plugin, please modify the conf file use below command.

vi /etc/backup_system/rt_client.conf.xml

Specify Vinchin Backup Server IP address in the row ‘<server_ip>0.0.0.0</server_ip>

and replace the address 0.0.0.0 with the actual IP address of your Vinchin Backup

Server. In this example, the server IP is 192.168.84.100.

<?xml version="1.0" encoding="UTF-8" ?>

<router-client-conf>

<install_path>/opt/vinchin/</install_path>

<server_ip>192.168.84.100</server_ip>

<server_port>22710</server_port>

<listen_ip>0.0.0.0</listen_ip>

<listen_port>22810</listen_port>

<client_key_name>client.key</client_key_name>

<log_dir>/var/log/vinchin/</log_dir>

<log_num>60</log_num>

<log_level>debug</log_level>

</router-client-conf>

When done, save the modifications.

8.         The rt_client process needs to be terminated, first please find its PID use below command.

ps -aux | grep rt_client | grep -v "grep" | awk '{print $2}'

The output should be a number and it’s the PID of the rt_client process.

1cab41dcb413da56fad23c04bf7af19.png

In this example, the PID is 6879, please terminate the process using the command below.

kill -9 6879

9.        After terminating the rt_client process, it will be automatically restarted by the file backup plugin daemon process, and the modification of the server IP should be effective now.


Register the Agent hosts to Vinchin Server for File Backup

After the installation and configuration of the backup plugin on the target host(s), please open Vinchin Backup Server web console and follow the steps below:

1.         Go to File Backup > Backup Agent page. Click on the Agent Management tab to register those hosts to Vinchin Backup Server.

007f401ef6abec07fa36f72dac3ba52.png

2.         Click on Options and then select Register to register them to Vinchin Backup Server.

20e0dbc1f249338eb869a5c4bb61b95.png

In the popup dialog, you can customize the Agent host name, assign the host to specific Vinchin Backup Server user, and ensure the File License checkbox is selected and then click on OK to register this host. 

3.    Once registered, the host status will change to Online registered status, now you can backup files of the registered host with File Backup feature.

Please rate how useful this information is to you.

Back to Knowledge Base
feedback Feedback

Fill in your contact info here so we can contact you in time!

Leave your message here if you could not find what you are looking for.

Submit