Back Up and Restore Using an NFS Server
Use a Network File System (NFS) server to back up and restore Virtual Appliance data.
You can back up Virtual Appliance data to an NFS server. Complete the following tasks in order:
Set Up the NFS Server
Install and configure an NFS server on AlmaLinux or Ubuntu for Virtual Appliance backups.
Follow these steps to install and configure the NFS server on AlmaLinux or Ubuntu:
Configure NFS Parameters on the Virtual Appliance
Configure NFS server parameters for Virtual Appliance nodes that use NFS backup storage.
Edit the nfs section in the globals.yaml.gotmpl file with the NFS server details on each applicable Virtual Appliance node.
The following example shows NFS parameters:
# NFS parameters
nfs:
enabled: true
server: 10.0.203.142
path: /mnt/nfs_share
Configure NFS Backup Settings in the globals.yaml.gotmpl File
Enable NFS backup settings for datastores in the globals.yaml.gotmpl file.
Back Up Virtual Appliance Data to an NFS Server
Back up Virtual Appliance datastore snapshots to a Network File System server.
Snapshots capture the state of a datastore and can be used to restore data. You can store multiple snapshots in one repository. The following commands store snapshots in the repo3 repository.
Create a snapshot for each datastore:
- Elasticsearch
-
CODE
appdcli backup elasticsearch create-snapshot <repo-name> <snapshot-name>ExampleCODEappdcli backup elasticsearch create-snapshot repo3 es-snapshot - PostgreSQL
-
CODE
appdcli backup postgres create-snapshot <repo-name>ExampleCODEappdcli backup postgres create-snapshot repo3 - MySQL
-
CODE
appdcli backup mysql create-snapshot <repo-name>ExampleCODEappdcli backup mysql create-snapshot repo3
Restore Snapshots from the NFS Server
Restore Virtual Appliance datastore snapshots stored on an NFS server.
Use snapshots stored on the NFS server to restore the datastores.
Delete Snapshots from the NFS Server
Delete Virtual Appliance datastore snapshots that you no longer need from NFS storage.
Delete snapshots that you no longer need from NFS storage.
- Elasticsearch
-
CODE
appdcli backup elasticsearch delete-snapshot <repo-name> <snapshot-name>ExampleCODEappdcli backup elasticsearch delete-snapshot repo3 es_snapshot