Filesystem
In this section we'll show you how to setup file system (it can be local or remote file system, but this example assumes that you have a dedicated disk which you're going to use as a backup destination with local XFS file system)
Note:
- Any remote FS like NFS, SMB, etc. - needs to be mounted by the user and vprotect user/group must own the directories within backup destination. vProtect expects already mounted file system and mount point in the backup destination
- you should add this file system to your
/etc/fstabfile on the node, so it gets mounted automatically if OS is rebooted - Consider using same file system for staging and backup destination (it boosts store tasks, as no data needs to be copied again) - in such scenario the only difference would be that presented
/backupdestinationmount point becomes subdirectory of the staging space (usually/vprotect_data/backups)
Preparation
-
Log in to vProtect Node, and create mount directory in example
/backupdestinationmkdir /backupdestination -
List all existing disks, and find your drive:
[root@vProtect01 ~]# fdisk -l | grep dev
Disk /dev/sda: 32.2 GB, 32212254720 bytes, 62914560 sectors
/dev/sda1 * 2048 1026047 512000 83 Linux
/dev/sda2 1026048 62914559 30944256 8e Linux LVM
Disk /dev/sdc: 500 GB, 17179869184 bytes, 33554432 sectors
Disk /dev/sdb: 21.5 GB, 21474836480 bytes, 41943040 sectors
Disk /dev/mapper/centos-root: 28.5 GB, 28462546944 bytes, 55590912 sectors
Disk /dev/mapper/centos-swap: 3221 MB, 3221225472 bytes, 6291456 sectors -
Prepare filesystem on it:
mkfs.xfs -K /dev/sdc -
Add permission for vprotect user to directory
/backupdestination:chown vprotect:vprotect -R /backupdestination -
Add line to
/etc/fstabfile, to automatically mount new filesystem after reboot:/dev/sdc /backupdestination xfs defaults 0 0or if you want store backups on NFS share then it will look similar to (where 10.50.1.28 is your host):
10.50.1.28:/example_nfs_share /backupdestination nfs defaults 0 0 -
Check if fstab entry is OK and mount filesystem:
mount /backupdestination -
Login to vProtect web UI
-
Go to Backup Destinations
-
Click on Create Backup Destination, choose File system
-
Type name for new backup destination, set retention and select at least one node configuration
-
In Storage paths type
/backupdestination. -
Save configuration.